implemented clear_internal()
authormatthew <matthew@owens.tech>
Sun, 5 Aug 2018 18:01:47 +0000 (19:01 +0100)
committermatthew <matthew@owens.tech>
Sun, 5 Aug 2018 18:01:47 +0000 (19:01 +0100)
nogl/board_renderer.c

index 9b02faa..4709905 100644 (file)
@@ -6,6 +6,15 @@ static WINDOW *win = NULL;
 static Point2i winPos;
 static Point2i winSize;
 
+void clear_internal()
+{
+       for(int y = 1; y < winSize.y - 1; ++y){
+               for(int x = 1; x < winSize.x - 1; ++x){
+                       mvaddch(y, x , ' ');
+               }
+       }
+}
+
 void boardRenderer_init()
 {
        Point2i termsize;