From 2b7192b1ac0a72e80cf5a06f406953a600ad54eb Mon Sep 17 00:00:00 2001 From: Bert Date: Fri, 5 Aug 2011 10:17:36 +0200 Subject: Renamed scroll() to pan_screen() --- image.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'image.c') diff --git a/image.c b/image.c index d03e3c7..c9e53de 100644 --- a/image.c +++ b/image.c @@ -277,19 +277,19 @@ int img_move(img_t *img, win_t *win, int dx, int dy) { return ox != img->x || oy != img->y; } -int img_pan(img_t *img, win_t *win, direction_t dir, int page) { +int img_pan(img_t *img, win_t *win, direction_t dir, int screen) { if (!img || !img->im || !win) return 0; switch (dir) { case DIR_LEFT: - return img_move(img, win, win->w / (page ? 1 : 5), 0); + return img_move(img, win, win->w / (screen ? 1 : 5), 0); case DIR_RIGHT: - return img_move(img, win, win->w / (page ? 1 : 5) * -1, 0); + return img_move(img, win, win->w / (screen ? 1 : 5) * -1, 0); case DIR_UP: - return img_move(img, win, 0, win->h / (page ? 1 : 5)); + return img_move(img, win, 0, win->h / (screen ? 1 : 5)); case DIR_DOWN: - return img_move(img, win, 0, win->h / (page ? 1 : 5) * -1); + return img_move(img, win, 0, win->h / (screen ? 1 : 5) * -1); } return 0; -- cgit v1.2.3