2
0
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:
Tigran Aivazian 2012-10-09 18:42:49 +01:00
parent 4d1945d0de
commit 339bda372a

View File

@ -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