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:
parent
30c630ba2f
commit
f0c675d722
@ -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())
|
||||
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user