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:
commit
83874931f5
@ -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