aboutsummaryrefslogtreecommitdiff
path: root/src/viewport.h
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2015-12-10 15:16:13 +0000
committerHarry Jeffery <harry@exec64.co.uk>2015-12-10 15:16:13 +0000
commit6cd76000aa7875fcc7a74cce0ce31783fd82196d (patch)
treeba7efe0e4378faee879fb995a857b6a18c3389af /src/viewport.h
parentc083cc66fc2b0c978c66dbb290e6bf07d78ed870 (diff)
downloadimv-6cd76000aa7875fcc7a74cce0ce31783fd82196d.tar.gz
Clean up redraw logic
Diffstat (limited to 'src/viewport.h')
-rw-r--r--src/viewport.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/viewport.h b/src/viewport.h
index 4233756..39fc009 100644
--- a/src/viewport.h
+++ b/src/viewport.h
@@ -79,6 +79,9 @@ void imv_viewport_set_redraw(struct imv_viewport *view);
void imv_viewport_set_title(struct imv_viewport *view, char *title);
/* Tell the viewport the window or image has changed */
-void imv_viewport_updated(struct imv_viewport *view, struct imv_texture *tex);
+void imv_viewport_update(struct imv_viewport *view, struct imv_texture *tex);
+
+/* Poll whether we need to redraw */
+int imv_viewport_needs_redraw(struct imv_viewport *view);
#endif