diff options
author | Marvin Borner | 2021-06-23 23:44:59 +0200 |
---|---|---|
committer | Marvin Borner | 2021-06-23 23:44:59 +0200 |
commit | 461e6fcb6a0abbf594ea08d6828b841ea6dc964e (patch) | |
tree | 25487387f068f80c100d1a2658864df422b6bee0 /apps/chess | |
parent | af338d77ee7f6469530233a70ccb450171ec5c66 (diff) |
Widget improvements
Diffstat (limited to 'apps/chess')
-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 fbb00e8..abfad59 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_widget(win, GUI_MAIN, vec2(TILE * x, TILE * y), - vec2(TILE, TILE)); + u32 widget = gui_widget(win, gui_main_widget(win), vec2(TILE * x, TILE * y), + vec2(TILE, TILE)); assert((signed)widget > 0); u8 colored = (x + y + 1) % 2 == 0; |