close screen framebuffer when exiting reader

pull/810/head
chrox 10 years ago
parent 88c80f447b
commit c8bc9ee37c

@ -239,6 +239,11 @@ function Screen:restoreFromBB(bb)
end
end
function Screen:close()
DEBUG("close screen framebuffer")
self.fb:close()
end
function Screen:getDPIMenuTable()
local function dpi() return G_reader_settings:readSetting("screen_dpi") end
local function custom() return G_reader_settings:readSetting("custom_screen_dpi") end

@ -358,7 +358,7 @@ function UIManager:run()
-- stop when we have no window to show
if #self._window_stack == 0 then
DEBUG("no dialog left to show, would loop endlessly")
DEBUG("no dialog left to show")
self:quit()
return nil
end

@ -38,8 +38,6 @@ function exitReader()
G_reader_settings:close()
input.closeAll()
-- Close lipc handles
KindlePowerD:coda()
ReaderActivityIndicator:coda()
@ -64,6 +62,9 @@ function exitReader()
end
end
input.closeAll()
Screen:close()
if Profiler then Profiler.stop() end
os.exit(0)
end

Loading…
Cancel
Save