mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Decrease the step for gamma to 10%.
The current step of 25% forward and 20% backward is too big and does not let us come close enough to the design value of 2.2 for most djvu files. With 10% step we can get much closer.
This commit is contained in:
@@ -2317,9 +2317,9 @@ function UniReader:addAllCommands()
|
||||
end)
|
||||
-- NuPogodi, 03.09.12 : moved the exit commands from here to the end of hotkey list
|
||||
self.commands:addGroup("vol-/+",{Keydef:new(KEY_VPLUS,nil),Keydef:new(KEY_VMINUS,nil)},
|
||||
"decrease/increase gamma 25%",
|
||||
"decrease/increase gamma 10%",
|
||||
function(unireader,keydef)
|
||||
unireader:modifyGamma(keydef.keycode==KEY_VPLUS and 1.25 or 0.8)
|
||||
unireader:modifyGamma(keydef.keycode==KEY_VPLUS and 1.1 or 0.9)
|
||||
end)
|
||||
--numeric key group
|
||||
local numeric_keydefs = {}
|
||||
|
||||
Reference in New Issue
Block a user