diff options
author | Jose Diez <jose.manuel.diez@gmail.com> | 2015-11-11 16:05:32 +0000 |
---|---|---|
committer | Jose Diez <jose.manuel.diez@gmail.com> | 2015-11-11 16:05:32 +0000 |
commit | c53ca5a9c59626a90551e2eaa00ad3e4247b3734 (patch) | |
tree | 52530100ced9dd7d20bc95d031a51b07a70796b3 /src/viewport.h | |
parent | ee3c3432cbc4a988c534b00cb274a11e3e23d6f8 (diff) | |
download | imv-c53ca5a9c59626a90551e2eaa00ad3e4247b3734.tar.gz |
Viewport: autoscale and center by default unless interacted with
Diffstat (limited to 'src/viewport.h')
-rw-r--r-- | src/viewport.h | 2 |
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 |