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.
pull/1110/head
Hans-Werner Hilse 10 years ago
parent 0abf44e3c5
commit 7c9d7e64b3

@ -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

Loading…
Cancel
Save