projects
/
csrpg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c390925
)
implemented clear_internal()
author
matthew
<matthew@owens.tech>
Sun, 5 Aug 2018 18:01:47 +0000
(19:01 +0100)
committer
matthew
<matthew@owens.tech>
Sun, 5 Aug 2018 18:01:47 +0000
(19:01 +0100)
nogl/board_renderer.c
patch
|
blob
|
history
diff --git
a/nogl/board_renderer.c
b/nogl/board_renderer.c
index
9b02faa
..
4709905
100644
(file)
--- a/
nogl/board_renderer.c
+++ b/
nogl/board_renderer.c
@@
-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;