Fix refresh in rotated (landscape) mode when using viewport

Rotation wasn't applied to the underlying framebuffer's blitbuffer,
so refresh coordinates were cut off the wrong way.
pull/1131/head
Hans-Werner Hilse 10 years ago
parent 9d2f93201f
commit 6e40d5a9ad

@ -148,6 +148,9 @@ end
function Screen:setRotationMode(mode)
self.bb:rotateAbsolute(-90 * (mode - self.native_rotation_mode - self.blitbuffer_rotation_mode))
if self.viewport then
self.fb.bb:setRotation(self.bb:getRotation())
end
self.cur_rotation_mode = mode
end

Loading…
Cancel
Save