diff options
author | Bert Münnich <ber.t@posteo.de> | 2014-02-04 22:38:24 +0100 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2014-02-04 22:38:24 +0100 |
commit | 524d9de877dcf0dc4212c12c3bd09db285dae17e (patch) | |
tree | 3a1bf61f7dbfe96afe80384f1deb3b8dd200ca05 /commands.c | |
parent | eb82519a80ab3d09fb3294d64a3526c678433d22 (diff) | |
download | nsxiv-524d9de877dcf0dc4212c12c3bd09db285dae17e.tar.zst |
Removed fit-win-to-img command
Diffstat (limited to 'commands.c')
-rw-r--r-- | commands.c | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -441,26 +441,6 @@ cmdreturn_t i_fit_to_win(arg_t a) return CMD_INVALID; } -cmdreturn_t i_fit_to_img(arg_t a) -{ - int x, y; - unsigned int w, h; - cmdreturn_t ret = CMD_INVALID; - - if (mode == MODE_IMAGE) { - x = MAX(0, win.x + img.x); - y = MAX(0, win.y + img.y); - w = img.w * img.zoom; - h = img.h * img.zoom; - if ((ret = win_moveresize(&win, x, y, w, h))) { - img.x = x - win.x; - img.y = y - win.y; - img.dirty = true; - } - } - return ret; -} - cmdreturn_t i_rotate(arg_t a) { degree_t degree = (degree_t) a; |