diff -r 9212be32d7a2 -r 87ff4c57955d src/window.c --- a/src/window.c Sun May 24 16:48:51 2026 +0200 +++ b/src/window.c Sun May 24 17:26:24 2026 +0200 @@ -29,12 +29,12 @@ #include "ascension/window.h" #include "ascension/context.h" -#include +#include "glad.h" #include #include -void asc_window_initialize(unsigned int index, AscGLContextSettings settings) { +void asc_window_initialize(unsigned int index, bool fullscreen) { if (index >= ASC_MAX_WINDOWS) { asc_error("Maximum number of windows exceeded (%u/%u).", index, ASC_MAX_WINDOWS); return; @@ -46,7 +46,7 @@ } SDL_WindowFlags flags = SDL_WINDOW_OPENGL; - flags |= settings.fullscreen ? SDL_WINDOW_FULLSCREEN : SDL_WINDOW_RESIZABLE; + flags |= fullscreen ? SDL_WINDOW_FULLSCREEN : SDL_WINDOW_RESIZABLE; window->sdl = SDL_CreateWindow("Ascension",800, 600, flags); if (window->sdl == NULL) { asc_error("Creating Window failed: %s", SDL_GetError()); @@ -65,7 +65,7 @@ // default UI scale window->ui_scale = 1.0f; - if (asc_gl_context_initialize(&window->glctx, window->sdl, &settings)) { + if (asc_gl_context_initialize(&window->glctx, window->sdl)) { char ui_scene_name[16]; snprintf(ui_scene_name, sizeof(ui_scene_name), "Window %u UI", index); asc_camera_init(&window->ui_camera, .type = ASC_CAMERA_ORTHO,