diff examples/example-debug/example-debug.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 ca30ff96bbe0
line wrap: on
line diff
--- a/examples/example-debug/example-debug.c	Mon Feb 27 11:08:28 2023 +0100
+++ b/examples/example-debug/example-debug.c	Mon Feb 27 11:11:23 2023 +0100
@@ -32,7 +32,7 @@
 #define W 1280
 #define H 720
 
-static struct state *states[1];
+static struct mlk_state *states[1];
 static int mouse_x;
 static int mouse_y;
 
@@ -48,7 +48,7 @@
 }
 
 static void
-handle(struct state *st, const union mlk_event *ev)
+handle(struct mlk_state *st, const union mlk_event *ev)
 {
 	(void)st;
 
@@ -66,7 +66,7 @@
 }
 
 static void
-draw(struct state *st)
+draw(struct mlk_state *st)
 {
 	(void)st;
 
@@ -82,7 +82,7 @@
 static void
 run(void)
 {
-	struct state state = {
+	struct mlk_state state = {
 		.handle = handle,
 		.draw = draw
 	};