fix crash on special offered Kindle

This commit is contained in:
chrox committed 2014-11-27 22:01:57 +08:00
1 parent 08dff3a158
commit ac6a34ee3d
1 file changed
+1 -1
+1 -1
View File
@@ -226,7 +226,7 @@ function KindleTouch:exit()
if isSpecialOffers() then
-- fake a touch event
if self.touch_dev then
local width, height = Screen:getScreenWidth(), Screen:getScreenHeight()
local width, height = self.screen:getScreenWidth(), self.screen:getScreenHeight()
require("ffi/input").fakeTapInput(self.touch_dev,
math.min(width, height)/2,
math.max(width, height)-30