ref: ccb630b75dcf4925ac866c3fdc5f0fea77705515
parent: c1dd18824e8726270ac5beade8ad8b4990e5bb41
author: Jacob Moody <[email protected]>
date: Wed Feb 8 02:15:33 EST 2023
dont move window when starting
--- a/Engine/src/display.c
+++ b/Engine/src/display.c
@@ -177,6 +177,7 @@
static void go_to_new_vid_mode(int w, int h)
{
+
if (window != NULL)
{
SDL_FreeSurface(surface_rgba);
@@ -192,8 +193,8 @@
window = SDL_CreateWindow(
titleName,
- SDL_WINDOWPOS_CENTERED,
- SDL_WINDOWPOS_CENTERED,
+ SDL_WINDOWPOS_UNDEFINED,
+ SDL_WINDOWPOS_UNDEFINED,
w, h,
(FullScreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0) | SDL_WINDOW_ALLOW_HIGHDPI);