commit ce0cc5a352df27044d01148d7922bdb167cfa64e
parent 0da70d6bd123ef415c3c5b73a7c57e2bc011678b
Author: Devine Lu Linvega <aliceffekt@gmail.com>
Date: Wed, 26 Apr 2023 12:04:44 -0700
Do not center on resize
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/uxnemu.c b/src/uxnemu.c
@@ -169,7 +169,7 @@ set_window_size(SDL_Window *window, int w, int h)
SDL_GetWindowPosition(window, &win.x, &win.y);
SDL_GetWindowSize(window, &win_old.x, &win_old.y);
if(w == win_old.x && h == win_old.y) return;
- SDL_SetWindowPosition(window, (win.x + win_old.x / 2) - w / 2, (win.y + win_old.y / 2) - h / 2);
+ /* SDL_SetWindowPosition(window, (win.x + win_old.x / 2) - w / 2, (win.y + win_old.y / 2) - h / 2); */
SDL_SetWindowSize(window, w, h);
}