Mercurial > molko
diff examples/example-gridmenu/example-gridmenu.c @ 469:0d6206cee6b9
core: state -> mlk_state
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 27 Feb 2023 11:11:23 +0100 |
parents | 01f5580e43d1 |
children | 02b16dd49b54 |
line wrap: on
line diff
--- a/examples/example-gridmenu/example-gridmenu.c Mon Feb 27 11:08:28 2023 +0100 +++ b/examples/example-gridmenu/example-gridmenu.c Mon Feb 27 11:11:23 2023 +0100 @@ -36,7 +36,7 @@ #define W (1280) #define H (720) -static struct state *states[1]; +static struct mlk_state *states[1]; static void init(void) @@ -56,7 +56,7 @@ } static void -handle(struct state *st, const union mlk_event *ev) +handle(struct mlk_state *st, const union mlk_event *ev) { struct gridmenu *menu = st->data; @@ -72,7 +72,7 @@ } static void -draw(struct state *st) +draw(struct mlk_state *st) { mlk_painter_set_color(0x4f8fbaff); mlk_painter_clear(); @@ -104,7 +104,7 @@ }; struct gridmenu menu = {0}; - struct state state = { + struct mlk_state state = { .data = &menu, .handle = handle, .draw = draw,