aboutsummaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/commands.c b/commands.c
index 15859fa..42e78da 100644
--- a/commands.c
+++ b/commands.c
@@ -184,12 +184,8 @@ bool cg_zoom(arg_t d)
{
if (mode == MODE_THUMB)
return tns_zoom(&tns, d);
- else if (d > 0)
- return img_zoom_in(&img);
- else if (d < 0)
- return img_zoom_out(&img);
else
- return false;
+ return img_zoom(&img, d);
}
bool cg_toggle_image_mark(arg_t _)
@@ -380,7 +376,7 @@ bool ci_drag(arg_t mode)
bool ci_set_zoom(arg_t zl)
{
- return img_zoom(&img, (prefix ? prefix : zl) / 100.0);
+ return img_zoom_to(&img, (prefix ? prefix : zl) / 100.0);
}
bool ci_fit_to_win(arg_t sm)