fix crash on special offered Kindle

pull/1270/head
chrox 10 years ago
parent 08dff3a158
commit ac6a34ee3d

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

Loading…
Cancel
Save