aboutsummaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
authorbaskerville <nihilhill@gmail.com>2012-07-19 12:28:44 +0200
committerbaskerville <nihilhill@gmail.com>2012-07-19 12:28:44 +0200
commitb56989f8fbfa6ab32e1fa8f54c0d03ff924c7308 (patch)
tree75b1a7c94f52f03184e373bf634f395d3f88ff06 /commands.c
parent5b6467913cca4086ebb6056e7235a3c78570ce6f (diff)
downloadnsxiv-b56989f8fbfa6ab32e1fa8f54c0d03ff924c7308.tar.zst
New commands: fit to the window's height/width
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands.c b/commands.c
index 2e877e3..8868091 100644
--- a/commands.c
+++ b/commands.c
@@ -310,9 +310,10 @@ bool i_set_zoom(arg_t a) {
bool i_fit_to_win(arg_t a) {
bool ret = false;
+ scalemode_t sm = (scalemode_t) a;
if (mode == MODE_IMAGE) {
- if ((ret = img_fit_win(&img)))
+ if ((ret = img_fit_win(&img, sm)))
img_center(&img);
}
return ret;