summaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2014-02-04 22:38:24 +0100
committerBert Münnich <ber.t@posteo.de>2014-02-04 22:38:24 +0100
commit524d9de877dcf0dc4212c12c3bd09db285dae17e (patch)
tree3a1bf61f7dbfe96afe80384f1deb3b8dd200ca05 /commands.c
parenteb82519a80ab3d09fb3294d64a3526c678433d22 (diff)
downloadnsxiv-524d9de877dcf0dc4212c12c3bd09db285dae17e.tar.zst
Removed fit-win-to-img command
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/commands.c b/commands.c
index 8234f08..1d1c8b3 100644
--- a/commands.c
+++ b/commands.c
@@ -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;