From 6f4ce8654319ec2d5099d5d01a63d8e2e5ea0c6f Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 13 May 2017 18:39:41 -0700 Subject: 3857 --- termbox/termbox.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'termbox/termbox.c') diff --git a/termbox/termbox.c b/termbox/termbox.c index 36c9496a..0e0669ad 100644 --- a/termbox/termbox.c +++ b/termbox/termbox.c @@ -158,7 +158,7 @@ int tb_is_active(void) return termw != -1; } -static void tb_repaint(bool force) { +void tb_present() { int x,y,w,i; struct tb_cell *back, *front; @@ -179,7 +179,7 @@ static void tb_repaint(bool force) { front = &CELL(&front_buffer, x, y); w = wcwidth(back->ch); if (w < 1) w = 1; - if (!force && memcmp(back, front, sizeof(struct tb_cell)) == 0) { + if (memcmp(back, front, sizeof(struct tb_cell)) == 0) { x += w; continue; } @@ -207,16 +207,6 @@ static void tb_repaint(bool force) { bytebuffer_flush(&output_buffer, inout); } -void tb_present(void) -{ - tb_repaint(false); -} - -void tb_sync(void) -{ - tb_repaint(true); -} - void tb_set_cursor(int cx, int cy) { assert(termw != -1); -- cgit 1.4.1-2-gfad0