add clear function to the gui

This commit is contained in:
Cedric Roux
2016-04-11 18:31:37 +02:00
parent 3e33416517
commit 062f7fad97
3 changed files with 12 additions and 0 deletions
+1
View File
@@ -132,6 +132,7 @@ static void dirty_event(struct gui *g, int id)
if (win == NULL)
{ WARN("widget id %d not contained in a window\n", id); return; }
g->xwin = win->x;
w->clear(g, w);
w->paint(g, w);
g->xwin = NULL;
g->repainted = 1;