fix rotation: viewport, not framebuffer

Rotation was always referring to the framebuffer's blitbuffer,
which in the case of devices with a viewport was not identical.
This commit is contained in:
Hans-Werner Hilse
2014-11-09 17:37:50 +01:00
parent 0abf44e3c5
commit 7c9d7e64b3

View File

@@ -142,7 +142,7 @@ function Screen:getScreenMode()
end
function Screen:setRotationMode(mode)
self.fb.bb:rotateAbsolute(-90 * (mode - self.native_rotation_mode - self.blitbuffer_rotation_mode))
self.bb:rotateAbsolute(-90 * (mode - self.native_rotation_mode - self.blitbuffer_rotation_mode))
self.cur_rotation_mode = mode
end