Allow toggling CRe's new dithering & scaling (#4922)

Smooth scaling toggle is per document, in the gear tab.
Dithering is in the Dev top menu ;).
This commit is contained in:
NiLuJe
2019-04-18 23:26:53 +02:00
committed by GitHub
parent 6203fbb633
commit 9134594119
10 changed files with 140 additions and 9 deletions

View File

@@ -173,6 +173,16 @@ end
if G_reader_settings:isTrue("night_mode") then
Device.screen:toggleNightMode()
end
-- dithering
if Device:hasEinkScreen() then
Device.screen:setupDithering()
if Device.screen.hw_dithering and G_reader_settings:isTrue("dev_no_hw_dither") then
Device.screen:toggleHWDithering()
end
if Device.screen.sw_dithering and G_reader_settings:isTrue("dev_no_sw_dither") then
Device.screen:toggleSWDithering()
end
end
if Device:needsTouchScreenProbe() then
Device:touchScreenProbe()