From 524d9de877dcf0dc4212c12c3bd09db285dae17e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Tue, 4 Feb 2014 22:38:24 +0100 Subject: Removed fit-win-to-img command --- commands.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'commands.c') 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; -- cgit v1.2.3