aboutsummaryrefslogtreecommitdiffstats
path: root/display.c
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-04-12 20:08:19 -0400
committerJesse Luehrs <doy@tozt.net>2014-04-12 20:08:19 -0400
commit00996e01627cf984c5c441bfb95bd2f0c0fde085 (patch)
treecf8d1d60a04aa8510ea5c451c45280c91619f4f1 /display.c
parent7f72a6a1b16b8d754943a76d1e87ccd9d51a38c3 (diff)
downloadrunes-00996e01627cf984c5c441bfb95bd2f0c0fde085.tar.gz
runes-00996e01627cf984c5c441bfb95bd2f0c0fde085.zip
fix threading issues
Diffstat (limited to 'display.c')
-rw-r--r--display.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/display.c b/display.c
index ac1acef..d7faab9 100644
--- a/display.c
+++ b/display.c
@@ -85,7 +85,7 @@ void runes_display_set_window_size(RunesTerm *t, int width, int height)
cairo_destroy(old_cr);
}
- runes_window_backend_flush(t);
+ runes_window_backend_request_flush(t);
}
/* note: this uses the backend cairo context because it should be redrawn every
@@ -146,7 +146,7 @@ void runes_display_show_string(RunesTerm *t, char *buf, size_t len)
/* we have to flush manually because XNextEvent (which normally handles
* flushing) will most likely be called again before the keystroke is
* handled */
- runes_window_backend_flush(t);
+ runes_window_backend_request_flush(t);
}
}
@@ -163,7 +163,7 @@ void runes_display_backspace(RunesTerm *t)
runes_display_get_font_dimensions(t, &fontx, &fonty, &ascent);
cairo_rectangle(t->cr, x, y - ascent, fontx, fonty);
cairo_fill(t->cr);
- runes_window_backend_flush(t);
+ runes_window_backend_request_flush(t);
cairo_restore(t->cr);
runes_display_move_to(t, t->row, t->col);
@@ -174,7 +174,7 @@ void runes_display_clear_screen(RunesTerm *t)
cairo_save(t->cr);
cairo_set_source(t->cr, t->bgcolor);
cairo_paint(t->cr);
- runes_window_backend_flush(t);
+ runes_window_backend_request_flush(t);
cairo_restore(t->cr);
runes_display_move_to(t, t->row, t->col);
@@ -196,7 +196,7 @@ void runes_display_clear_screen_forward(RunesTerm *t)
0, y - ascent + fonty,
t->xpixel, t->ypixel - y + ascent - fonty);
cairo_fill(t->cr);
- runes_window_backend_flush(t);
+ runes_window_backend_request_flush(t);
cairo_restore(t->cr);
runes_display_move_to(t, t->row, t->col);
@@ -213,7 +213,7 @@ void runes_display_kill_line_forward(RunesTerm *t)
runes_display_get_font_dimensions(t, &fontx, &fonty, &ascent);
cairo_rectangle(t->cr, x, y - ascent, t->xpixel - x, fonty);
cairo_fill(t->cr);
- runes_window_backend_flush(t);
+ runes_window_backend_request_flush(t);
cairo_restore(t->cr);
runes_display_move_to(t, t->row, t->col);