about summary refs log tree commit diff stats
path: root/termbox
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-05-13 18:39:41 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-05-13 18:39:41 -0700
commit6f4ce8654319ec2d5099d5d01a63d8e2e5ea0c6f (patch)
tree0ddcc5cc5fa366942c97fd123b4efc9a8cd08866 /termbox
parent05a22c024d0ffe3382f94ccacec6718cb10ef78f (diff)
downloadmu-6f4ce8654319ec2d5099d5d01a63d8e2e5ea0c6f.tar.gz
3857
Diffstat (limited to 'termbox')
-rw-r--r--termbox/termbox.c14
-rw-r--r--termbox/termbox.h3
2 files changed, 2 insertions, 15 deletions
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);
diff --git a/termbox/termbox.h b/termbox/termbox.h
index c6cda6e1..4c5d327a 100644
--- a/termbox/termbox.h
+++ b/termbox/termbox.h
@@ -49,9 +49,6 @@ int tb_height(void);
  * tb_present(). */
 void tb_present(void);
 
-/* Variant of tb_present() that always refreshes the entire screen. */
-void tb_sync(void);
-
 /* Returns a pointer to the internal screen state: a 1D array of cells in
  * raster order. You'll need to call tb_width() and tb_height() for the
  * array's dimensions. The array stays valid until tb_clear() or tb_present()