From 77273a84a783bb6f4f2dcb218f293894e5977321 Mon Sep 17 00:00:00 2001 From: Tigran Aivazian Date: Thu, 4 Oct 2012 22:33:43 +0100 Subject: [PATCH] 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. --- unireader.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unireader.lua b/unireader.lua index 218ed7904..f1eaee61d 100644 --- a/unireader.lua +++ b/unireader.lua @@ -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 = {}