2
0
mirror of https://github.com/koreader/koreader synced 2024-11-18 03:25:46 +00:00

E-ink optimization setting should be correctly set after restart.

This commit is contained in:
zijiehe 2016-02-29 15:08:57 +08:00 committed by Zijie He
parent 30c630ba2f
commit f0c675d722
2 changed files with 3 additions and 8 deletions

View File

@ -52,6 +52,9 @@ function Device:init()
error("screen/framebuffer must be implemented")
end
local is_eink = G_reader_settings:readSetting("eink")
self.screen.eink = (is_eink == nill) or is_eink
DEBUG("initializing for device", self.model)
DEBUG("framebuffer resolution:", self.screen:getSize())

View File

@ -1,8 +0,0 @@
-- compatibility wrapper
local Screen = require("device").screen
-- set eink flag for this screen
local is_eink = G_reader_settings:readSetting("eink")
Screen.eink = (is_eink == nil) and true or is_eink
return Screen