2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00

Merge pull request #406 from tigran123/long-msg

Restrict the value of gamma in the window message.
This commit is contained in:
{Qingping,Dave} Hou 2012-10-09 14:52:40 -07:00
commit 83874931f5

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