test/sandbox.c

changeset 7
9dd76cbd6c90
parent 6
302971e8599b
child 15
362b7659dc76
--- a/test/sandbox.c	Wed Nov 01 20:09:49 2023 +0100
+++ b/test/sandbox.c	Wed Nov 01 21:00:33 2023 +0100
@@ -25,7 +25,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include "ascension/window.h"
+#include <ascension/ascension.h>
 
 static bool show_message_box_on_error(SDL_Window* window) {
     if (asc_has_error()) {
@@ -48,12 +48,11 @@
     asc_window_settings_init_defaults(&settings);
     settings.title = "Sandbox Application";
 
-    AscWindow window;
-    asc_window_initialize(&window, &settings);
+    AscWindow *window = asc_window_initialize(0, &settings);
 
     while (asc_loop_next()) {
         // quit application on any error
-        if (show_message_box_on_error(window.window)) break;
+        if (show_message_box_on_error(window->window)) break;
 
 
     }

mercurial