diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2017-06-06 20:00:42 +0100 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2017-06-06 20:00:42 +0100 |
commit | 9dc4908ea44d15ba01fb2f66f3c39d4935195e3a (patch) | |
tree | 5aba02f472798ca23bb4b79c487db052033b55be /src | |
parent | 6c7e4b9c032cd40674169c06561fe58f18f146cd (diff) | |
download | imv-9dc4908ea44d15ba01fb2f66f3c39d4935195e3a.tar.gz |
Fix redraw on viewport update
Diffstat (limited to 'src')
-rw-r--r-- | src/imv.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -421,6 +421,12 @@ bool imv_run(struct imv *imv) } } + + /* check if the viewport needs a redraw */ + if(imv_viewport_needs_redraw(imv->view)) { + imv->need_redraw = true; + } + if(imv->need_redraw) { render_window(imv); SDL_RenderPresent(imv->renderer); |