Fix interface bar position when using custom resolution (#2)

See #3
This commit is contained in:
Jan Šimek 2022-05-20 15:37:05 -07:00 committed by GitHub
parent 4e7489e105
commit 7495659fc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -351,7 +351,10 @@ int interfaceInit()
gInterfaceBarInitialized = 1;
gInterfaceBarWindow = windowCreate(0, 379, 640, 100, _colorTable[0], WINDOW_HIDDEN);
int xPos = (_scr_size.right - 640) / 2;
int yPos = _scr_size.bottom - 99;
gInterfaceBarWindow = windowCreate(xPos, yPos, 640, 100, _colorTable[0], WINDOW_HIDDEN);
if (gInterfaceBarWindow == -1) {
goto err;
}