diff options
author | Bert Münnich <ber.t@gmx.com> | 2011-10-16 17:58:53 +0200 |
---|---|---|
committer | Bert Münnich <ber.t@gmx.com> | 2011-10-16 17:58:53 +0200 |
commit | 4f5ce2e8282d3f317449dc8854397c042644e134 (patch) | |
tree | 4917bbda5feeb9a99aec57ff382e6663d1fc078f /commands.c | |
parent | 867940ea85495ac4e8e23efbb574fd9d86bccf42 (diff) |
Added i_set_zoom command: set zoom to number prefix
Diffstat (limited to 'commands.c')
-rw-r--r-- | commands.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -273,7 +273,14 @@ bool i_zoom(arg_t a) { else if (scale < 0) return img_zoom_out(&img); else - return img_zoom(&img, 1.0); + return false; +} + +bool i_set_zoom(arg_t a) { + if (mode == MODE_IMAGE) + return img_zoom(&img, (prefix ? prefix : (long) a) / 100.0); + else + return false; } bool i_fit_to_win(arg_t a) { |