mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
minor fixes
This commit is contained in:
@@ -19,8 +19,8 @@ function ReaderHinting:onHintPage()
|
||||
self.zoom:getZoom(self.view.state.page + i),
|
||||
self.view.state.rotation,
|
||||
self.view.state.gamma,
|
||||
self.view.state.black_hex,
|
||||
self.view.state.white_hex)
|
||||
self.view.state.black_hex,
|
||||
self.view.state.white_hex)
|
||||
end
|
||||
end
|
||||
return true
|
||||
|
||||
@@ -22,8 +22,8 @@ function ReaderKoptListener:onReadSettings(config)
|
||||
self.normal_zoom_mode = normal_zoom_mode
|
||||
self:setZoomMode(normal_zoom_mode)
|
||||
self.ui:handleEvent(Event:new("GammaUpdate", self.document.configurable.contrast, true)) -- no notification
|
||||
self.ui:handleEvent(Event:new("BlackLevelUpdate", self.document.configurable.black_hex, true)) -- no notification
|
||||
self.ui:handleEvent(Event:new("WhiteLevelUpdate", self.document.configurable.white_hex, true)) -- no notification
|
||||
self.ui:handleEvent(Event:new("BlackLevelUpdate", self.document.configurable.black_hex, true)) -- no notification
|
||||
self.ui:handleEvent(Event:new("WhiteLevelUpdate", self.document.configurable.white_hex, true)) -- no notification
|
||||
-- since K2pdfopt v2.21 negative value of word spacing is also used, for config
|
||||
-- compatibility we should manually change previous -1 to a more reasonable -0.2
|
||||
if self.document.configurable.word_spacing == -1 then
|
||||
|
||||
Reference in New Issue
Block a user