ImageViewer: "best fit" to "scale"

pull/2507/head
Frans de Jonge 8 years ago committed by Qingping Hou
parent 8f6a38db69
commit 81bc115cee

@ -38,7 +38,7 @@ local ImageViewer = InputContainer:new{
width = nil, width = nil,
height = nil, height = nil,
stretched = true, -- start with image stretched (Best fit) stretched = true, -- start with image scaled for best fit
rotated = false, rotated = false,
-- we use this global setting for rotation angle to have the same angle as reader -- we use this global setting for rotation angle to have the same angle as reader
rotation_angle = DLANDSCAPE_CLOCKWISE_ROTATION and 90 or 270, rotation_angle = DLANDSCAPE_CLOCKWISE_ROTATION and 90 or 270,
@ -116,7 +116,7 @@ function ImageViewer:update()
local buttons = { local buttons = {
{ {
{ {
text = self.stretched and _("Original size") or _("Best fit"), text = self.stretched and _("Original size") or _("Scale"),
callback = function() callback = function()
self.stretched = not self.stretched and true or false self.stretched = not self.stretched and true or false
self:update() self:update()

Loading…
Cancel
Save