tr2/shell: allow negative window x,y

This commit is contained in:
Marcin Kurczewski 2025-04-22 23:13:31 +02:00
parent 779be2afd6
commit 5d6a1db061
No known key found for this signature in database
GPG key ID: CC65E6FD28CAE42A

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;