From e310136e02ada4862c250280034d36fbfa24fc61 Mon Sep 17 00:00:00 2001 From: Bert Münnich Date: Wed, 4 Oct 2017 18:12:27 +0200 Subject: Mouse drag translates pointer position to image area This makes mouse panning more direct and faster. --- image.h | 1 + 1 file changed, 1 insertion(+) (limited to 'image.h') diff --git a/image.h b/image.h index 2813c9b..37bc4a2 100644 --- a/image.h +++ b/image.h @@ -80,6 +80,7 @@ bool img_zoom(img_t*, float); bool img_zoom_in(img_t*); bool img_zoom_out(img_t*); +bool img_pos(img_t*, float, float); 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