diff options
Diffstat (limited to 'image.c')
-rw-r--r-- | image.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -590,7 +590,7 @@ bool img_move(img_t *img, float dx, float dy) bool img_pan(img_t *img, direction_t dir, int d) { /* d < 0: screen-wise - * d = 0: 1/5 of screen + * d = 0: 1/PAN_FRACTION of screen * d > 0: num of pixels */ float x, y; @@ -598,8 +598,8 @@ bool img_pan(img_t *img, direction_t dir, int d) if (d > 0) { x = y = MAX(1, (float) d * img->zoom); } else { - x = img->win->w / (d < 0 ? 1 : 5); - y = img->win->h / (d < 0 ? 1 : 5); + x = img->win->w / (d < 0 ? 1 : PAN_FRACTION); + y = img->win->h / (d < 0 ? 1 : PAN_FRACTION); } switch (dir) { |