aboutsummaryrefslogtreecommitdiff
path: root/src/imv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/imv.c')
-rw-r--r--src/imv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imv.c b/src/imv.c
index 368973b..34066cf 100644
--- a/src/imv.c
+++ b/src/imv.c
@@ -722,7 +722,7 @@ static void handle_event(struct imv *imv, SDL_Event *event)
break;
case SDL_MOUSEMOTION:
if(event->motion.state & SDL_BUTTON_LMASK) {
- imv_viewport_move(imv->view, event->motion.xrel, event->motion.yrel);
+ imv_viewport_move(imv->view, event->motion.xrel, event->motion.yrel, imv->texture);
}
SDL_ShowCursor(SDL_ENABLE);
break;
@@ -815,7 +815,7 @@ void command_pan(struct imv_list *args, void *data)
long int x = strtol(args->items[1], NULL, 10);
long int y = strtol(args->items[2], NULL, 10);
- imv_viewport_move(imv->view, x, y);
+ imv_viewport_move(imv->view, x, y, imv->texture);
}
void command_select_rel(struct imv_list *args, void *data)