mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-04-28 12:47:58 +03:00
tr2/shell: allow negative window x,y
This commit is contained in:
parent
4fa521d956
commit
169ee7603f
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