From 5237ba947d0efd0e5d1eb5a562d754350a2c1ee9 Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Fri, 9 Mar 2012 18:45:55 +0800 Subject: [PATCH] fix: typo --- screen.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/screen.lua b/screen.lua index d587166d6..158d20a63 100644 --- a/screen.lua +++ b/screen.lua @@ -21,7 +21,7 @@ Codes for rotation modes: 1 for no rotation, 2 for landscape with bottom on the right side of screen, etc. - 2 + 2 +--------------+ | +----------+ | | | | | @@ -35,7 +35,7 @@ Codes for rotation modes: | | | | +--------------+ - 0 + 0 --]] @@ -54,6 +54,7 @@ function Screen:screenRotate(orien) end self.cur_rotation_mode = (self.cur_rotation_mode + orien) % 4 + -- you have to reopen framebuffer after rotate fb:setOrientation(self.cur_rotation_mode) fb:close() --local mode = self.rotation_modes[self.cur_rotation_mode]