Fix main menu underlay window position

See #3
This commit is contained in:
Alexander Batalov 2022-05-21 21:06:13 +03:00
parent c0b9290e73
commit 6725edcf5f
1 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ int falloutMain(int argc, char** argv)
break; break;
case MAIN_MENU_LOAD_GAME: case MAIN_MENU_LOAD_GAME:
if (1) { if (1) {
int win = windowCreate(0, 0, 640, 480, _colorTable[0], WINDOW_FLAG_0x10 | WINDOW_FLAG_0x04); int win = windowCreate(0, 0, screenGetWidth(), screenGetHeight(), _colorTable[0], WINDOW_FLAG_0x10 | WINDOW_FLAG_0x04);
mainMenuWindowHide(true); mainMenuWindowHide(true);
mainMenuWindowFree(); mainMenuWindowFree();
_game_user_wants_to_quit = 0; _game_user_wants_to_quit = 0;
@ -280,7 +280,7 @@ int _main_load_new(char* mapFileName)
objectShow(gDude, NULL); objectShow(gDude, NULL);
mouseHideCursor(); mouseHideCursor();
int win = windowCreate(0, 0, 640, 480, _colorTable[0], WINDOW_FLAG_0x10 | WINDOW_FLAG_0x04); int win = windowCreate(0, 0, screenGetWidth(), screenGetHeight(), _colorTable[0], WINDOW_FLAG_0x10 | WINDOW_FLAG_0x04);
windowRefresh(win); windowRefresh(win);
colorPaletteLoad("color.pal"); colorPaletteLoad("color.pal");