From 7c9d7e64b34b7aadd708783c28bb717c06ab5704 Mon Sep 17 00:00:00 2001 From: Hans-Werner Hilse Date: Sun, 9 Nov 2014 17:37:50 +0100 Subject: [PATCH] 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. --- frontend/device/screen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/device/screen.lua b/frontend/device/screen.lua index 1f6f40ec8..140a3863a 100644 --- a/frontend/device/screen.lua +++ b/frontend/device/screen.lua @@ -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