aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-05-12 23:54:14 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-05-12 23:54:14 +0200
commit49db502f1721184a428feb99ed7621b24ce749bc (patch)
tree3f199b77f2c684062e8894ba3cad7c5468c3b681
parent3e433c98f5c1006d2a4f0f1c139573b9ac478435 (diff)
downloadvis-49db502f1721184a428feb99ed7621b24ce749bc.tar.gz
vis-49db502f1721184a428feb99ed7621b24ce749bc.tar.xz
vis: immediately update screen after a vis_redraw call
By default we only update the screen once per main loop iteration. This might change in the future, but for now we force an update when a redraw is explicitly requested.
-rw-r--r--vis.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vis.c b/vis.c
index 0adb491..cf0a922 100644
--- a/vis.c
+++ b/vis.c
@@ -548,6 +548,7 @@ void vis_draw(Vis *vis) {
void vis_redraw(Vis *vis) {
vis->ui->redraw(vis->ui);
+ vis_update(vis);
}
void vis_update(Vis *vis) {