summaryrefslogtreecommitdiffstats
path: root/image.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-01-30 22:00:58 +0100
committerBert <ber.t@gmx.com>2011-01-30 22:00:58 +0100
commit229830ad188fc520da56bfa8a3b8e0da3744c799 (patch)
tree172092091b6486bb592a2034724c4f7d5cf85d6c /image.c
parentc937570bbe61985f632db2b9285232453a8b8ee5 (diff)
downloadnsxiv-229830ad188fc520da56bfa8a3b8e0da3744c799.tar.zst
Replace -w with well-known geometry option
Diffstat (limited to 'image.c')
-rw-r--r--image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/image.c b/image.c
index 8a99737..83bd4b1 100644
--- a/image.c
+++ b/image.c
@@ -254,11 +254,11 @@ int img_pan(img_t *img, win_t *win, pandir_t dir) {
case PAN_LEFT:
return img_move(img, win, win->w / 5, 0);
case PAN_RIGHT:
- return img_move(img, win, -win->w / 5, 0);
+ return img_move(img, win, win->w / 5 * -1, 0);
case PAN_UP:
return img_move(img, win, 0, win->h / 5);
case PAN_DOWN:
- return img_move(img, win, 0, -win->h / 5);
+ return img_move(img, win, 0, win->h / 5 * -1);
}
return 0;