diff options
Diffstat (limited to 'apps/chess/main.c')
-rw-r--r-- | apps/chess/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/chess/main.c b/apps/chess/main.c index b0da8d1..8e1d470 100644 --- a/apps/chess/main.c +++ b/apps/chess/main.c @@ -214,8 +214,8 @@ static void draw_board(void) { for (u8 x = 0; x < 8; x++) { for (u8 y = 0; y < 8; y++) { - u32 widget; - gui_new_widget(&widget, win, vec2(TILE * x, TILE * y), vec2(TILE, TILE)); + u32 widget = gui_new_widget(win, GUI_MAIN, vec2(TILE * x, TILE * y), + vec2(TILE, TILE)); assert((signed)widget > 0); u8 colored = (x + y + 1) % 2 == 0; |