mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
chore: add test for screen color toggle
This commit is contained in:
committed by
Frans de Jonge
parent
11a38b33f1
commit
080c079d01
@@ -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