From de369c03569d0e11874bcece70f631b0fa9df5f4 Mon Sep 17 00:00:00 2001 From: briaguya Date: Wed, 18 May 2022 17:59:07 -0400 Subject: [PATCH] working now, still needs cleanup before PRing --- libultraship/libultraship/Lib/Fast3D/gfx_sdl2.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libultraship/libultraship/Lib/Fast3D/gfx_sdl2.cpp b/libultraship/libultraship/Lib/Fast3D/gfx_sdl2.cpp index 754958b10..359393a8e 100644 --- a/libultraship/libultraship/Lib/Fast3D/gfx_sdl2.cpp +++ b/libultraship/libultraship/Lib/Fast3D/gfx_sdl2.cpp @@ -150,8 +150,10 @@ static void gfx_sdl_init(const char *game_name, bool start_in_fullscreen, uint32 std::cout << "\nwe hit gfx_sdl_init in gfx_sdl2.cpp\n"; + window_width = width; + window_height = height; wnd = SDL_CreateWindow(title, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, - width, height, SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE); + window_width, window_height, SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE); if (start_in_fullscreen) { set_fullscreen(true, false);