tr2/shell: allow negative window x,y

This commit is contained in:
Marcin Kurczewski 2025-04-22 23:13:31 +02:00
parent 4fa521d956
commit 169ee7603f

View file

@ -138,7 +138,7 @@ static void M_SyncToWindow(void)
width = 1280;
height = 720;
}
if (x <= 0 || y <= 0) {
if (x == -1 && y == -1) { // default config state
const SHELL_SIZE display_size = Shell_GetCurrentDisplaySize();
x = (display_size.w - width) / 2;
y = (display_size.h - height) / 2;