diff options
author | Bert Münnich <ber.t@gmx.com> | 2011-10-16 18:31:01 +0200 |
---|---|---|
committer | Bert Münnich <ber.t@gmx.com> | 2011-10-16 18:31:01 +0200 |
commit | 8dcb54705aed7175c91d991486552d497a2e861e (patch) | |
tree | ffc66af93d600b6e29b1be18a978cf4f90009e4a /image.h | |
parent | 4f5ce2e8282d3f317449dc8854397c042644e134 (diff) | |
download | nsxiv-8dcb54705aed7175c91d991486552d497a2e861e.tar.zst |
Fixed pixel-wise panning by chaning x, y vars to float
Diffstat (limited to 'image.h')
-rw-r--r-- | image.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |