diff examples/example-ui/example-ui.c @ 485:3ff1fe64d0cd

core: window -> mlk_window
author David Demelier <markand@malikania.fr>
date Tue, 28 Feb 2023 08:40:35 +0100
parents ca30ff96bbe0
children d6757c30658e
line wrap: on
line diff
--- a/examples/example-ui/example-ui.c	Mon Feb 27 19:47:09 2023 +0100
+++ b/examples/example-ui/example-ui.c	Tue Feb 28 08:40:35 2023 +0100
@@ -125,7 +125,7 @@
 {
 	if (mlk_core_init("fr.malikania", "example-ui") < 0 || ui_init() < 0)
 		mlk_panic();
-	if (window_open("Example - UI", W, H) < 0)
+	if (mlk_window_open("Example - UI", W, H) < 0)
 		mlk_panic();
 }
 
@@ -219,12 +219,12 @@
 			ui.motion.active = 1;
 			ui.motion.x = ev->click.x;
 			ui.motion.y = ev->click.y;
-			window_set_cursor(WINDOW_CURSOR_SIZE);
+			mlk_window_set_cursor(WINDOW_CURSOR_SIZE);
 		}
 		break;
 	case MLK_EVENT_CLICKUP:
 		ui.motion.active = 0;
-		window_set_cursor(WINDOW_CURSOR_ARROW);
+		mlk_window_set_cursor(WINDOW_CURSOR_ARROW);
 		break;
 	default:
 		break;
@@ -269,7 +269,7 @@
 static void
 quit(void)
 {
-	window_finish();
+	mlk_window_finish();
 	ui_finish();
 	mlk_core_finish();
 }