Browse code

Do not center on resize

Devine Lu Linvega authored on 26/04/2023 19:04:44
Showing 1 changed files
... ...
@@ -169,7 +169,7 @@ set_window_size(SDL_Window *window, int w, int h)
169 169
 	SDL_GetWindowPosition(window, &win.x, &win.y);
170 170
 	SDL_GetWindowSize(window, &win_old.x, &win_old.y);
171 171
 	if(w == win_old.x && h == win_old.y) return;
172
-	SDL_SetWindowPosition(window, (win.x + win_old.x / 2) - w / 2, (win.y + win_old.y / 2) - h / 2);
172
+	/* SDL_SetWindowPosition(window, (win.x + win_old.x / 2) - w / 2, (win.y + win_old.y / 2) - h / 2); */
173 173
 	SDL_SetWindowSize(window, w, h);
174 174
 }
175 175