chore: add test for screen color toggle
This commit is contained in:
1 parent
11a38b33f1
commit
080c079d01
5 files changed
+27
-9
No files matched your search
@@ -60,11 +60,6 @@ end
|
||||
|
||||
local CanvasContext = require("document/canvascontext")
|
||||
CanvasContext:init(Device)
|
||||
if G_reader_settings:has("color_rendering") then
|
||||
CanvasContext:setColorRenderingEnabled(G_reader_settings:isTrue("color_rendering"))
|
||||
else
|
||||
CanvasContext:setColorRenderingEnabled(Device.screen:isColorScreen())
|
||||
end
|
||||
|
||||
-- option parsing:
|
||||
local longopts = {
|
||||
|
||||
Reference in new issue
Block a user