Remove DSCROLL_MODE and DGLOBALGAMMA (#5754)

This commit is contained in:
Robert
2020-01-07 20:16:59 +01:00
committed by poire-z
parent d9b37a1794
commit 73a0f2f9d1
5 changed files with 35 additions and 20 deletions

View File

@@ -761,7 +761,7 @@ function ReaderView:onReadSettings(config)
Screen:setScreenMode(screen_mode)
self:onSetScreenMode(screen_mode, config:readSetting("rotation_mode"), true)
end
self.state.gamma = config:readSetting("gamma") or DGLOBALGAMMA
self.state.gamma = config:readSetting("gamma") or 1.0
local full_screen = config:readSetting("kopt_full_screen") or self.document.configurable.full_screen
if full_screen == 0 then
self.footer_visible = false