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:
Tigran Aivazian
2012-10-04 22:33:43 +01:00
parent 057c461e7d
commit 77273a84a7

View File

@@ -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 = {}