From ce0cc5a352df27044d01148d7922bdb167cfa64e Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Wed, 26 Apr 2023 12:04:44 -0700 Subject: [PATCH] Do not center on resize --- src/uxnemu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uxnemu.c b/src/uxnemu.c index 6fc2754..35ccf0a 100644 --- 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); }