1.1 --- a/test/sandbox.c Wed Nov 01 20:09:49 2023 +0100 1.2 +++ b/test/sandbox.c Wed Nov 01 21:00:33 2023 +0100 1.3 @@ -25,7 +25,7 @@ 1.4 * POSSIBILITY OF SUCH DAMAGE. 1.5 */ 1.6 1.7 -#include "ascension/window.h" 1.8 +#include <ascension/ascension.h> 1.9 1.10 static bool show_message_box_on_error(SDL_Window* window) { 1.11 if (asc_has_error()) { 1.12 @@ -48,12 +48,11 @@ 1.13 asc_window_settings_init_defaults(&settings); 1.14 settings.title = "Sandbox Application"; 1.15 1.16 - AscWindow window; 1.17 - asc_window_initialize(&window, &settings); 1.18 + AscWindow *window = asc_window_initialize(0, &settings); 1.19 1.20 while (asc_loop_next()) { 1.21 // quit application on any error 1.22 - if (show_message_box_on_error(window.window)) break; 1.23 + if (show_message_box_on_error(window->window)) break; 1.24 1.25 1.26 }