summaryrefslogtreecommitdiffstats
path: root/image.h
diff options
context:
space:
mode:
authorBert Münnich <ber.t@gmx.com>2011-10-16 18:31:01 +0200
committerBert Münnich <ber.t@gmx.com>2011-10-16 18:31:01 +0200
commit8dcb54705aed7175c91d991486552d497a2e861e (patch)
treeffc66af93d600b6e29b1be18a978cf4f90009e4a /image.h
parent4f5ce2e8282d3f317449dc8854397c042644e134 (diff)
downloadnsxiv-8dcb54705aed7175c91d991486552d497a2e861e.tar.zst
Fixed pixel-wise panning by chaning x, y vars to float
Diffstat (limited to 'image.h')
-rw-r--r--image.h6
1 files changed, 3 insertions, 3 deletions
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);