mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
Restrict the value gamma in the window message.
In order to make sure that the message is always visible we should not show all the decimal places --- one is more than enough. Otherwise the whole thing is invisible, often enough to be irritating...
This commit is contained in:
parent
4d1945d0de
commit
339bda372a
@ -1633,7 +1633,7 @@ end
|
||||
function UniReader:modifyGamma(factor)
|
||||
Debug("modifyGamma, gamma=", self.globalgamma, " factor=", factor)
|
||||
self.globalgamma = self.globalgamma * factor;
|
||||
InfoMessage:inform("Changing gamma to "..self.globalgamma..". ", nil, 1, MSG_AUX)
|
||||
InfoMessage:inform(string.format("New gamma is %.1f", self.globalgamma), nil, 1, MSG_AUX)
|
||||
self:redrawCurrentPage()
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user