From 8dcb54705aed7175c91d991486552d497a2e861e Mon Sep 17 00:00:00 2001 From: Bert Münnich Date: Sun, 16 Oct 2011 18:31:01 +0200 Subject: Fixed pixel-wise panning by chaning x, y vars to float --- image.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'image.h') diff --git a/image.h b/image.h index 19ee37f..51593e6 100644 --- a/image.h +++ b/image.h @@ -43,8 +43,8 @@ typedef struct { int h; win_t *win; - int x; - int y; + float x; + float y; scalemode_t scalemode; float zoom; @@ -75,7 +75,7 @@ bool img_zoom(img_t*, float); bool img_zoom_in(img_t*); bool img_zoom_out(img_t*); -bool img_move(img_t*, int, int); +bool img_move(img_t*, float, float); bool img_pan(img_t*, direction_t, int); bool img_pan_edge(img_t*, direction_t); -- cgit v1.2.3