aboutsummaryrefslogtreecommitdiff
path: root/src/viewport.h
diff options
context:
space:
mode:
authorJose Diez <jose.manuel.diez@gmail.com>2015-11-11 16:05:32 +0000
committerJose Diez <jose.manuel.diez@gmail.com>2015-11-11 16:05:32 +0000
commitc53ca5a9c59626a90551e2eaa00ad3e4247b3734 (patch)
tree52530100ced9dd7d20bc95d031a51b07a70796b3 /src/viewport.h
parentee3c3432cbc4a988c534b00cb274a11e3e23d6f8 (diff)
downloadimv-c53ca5a9c59626a90551e2eaa00ad3e4247b3734.tar.gz
Viewport: autoscale and center by default unless interacted with
Diffstat (limited to 'src/viewport.h')
-rw-r--r--src/viewport.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/viewport.h b/src/viewport.h
index 2cff15c..5fb763a 100644
--- a/src/viewport.h
+++ b/src/viewport.h
@@ -30,6 +30,7 @@ struct imv_viewport {
int fullscreen;
int redraw;
int playing;
+ int locked;
};
void imv_init_viewport(struct imv_viewport *view, SDL_Window *window);
@@ -44,5 +45,6 @@ void imv_viewport_center(struct imv_viewport*, const struct imv_image*);
void imv_viewport_scale_to_window(struct imv_viewport*, const struct imv_image*);
void imv_viewport_set_redraw(struct imv_viewport*);
void imv_viewport_set_title(struct imv_viewport*, char*);
+void imv_viewport_updated(struct imv_viewport*, struct imv_image*);
#endif