mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-04-28 20:58:07 +03:00
tr2/shell: allow negative window x,y
This commit is contained in:
parent
779be2afd6
commit
5d6a1db061
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue