From 6725edcf5fbf23d40d14feb00d201a24e2806a57 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Sat, 21 May 2022 21:06:13 +0300 Subject: [PATCH] Fix main menu underlay window position See #3 --- src/main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cc b/src/main.cc index d35c8d9..2dcea8a 100644 --- a/src/main.cc +++ b/src/main.cc @@ -170,7 +170,7 @@ int falloutMain(int argc, char** argv) break; case MAIN_MENU_LOAD_GAME: 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); mainMenuWindowFree(); _game_user_wants_to_quit = 0; @@ -280,7 +280,7 @@ int _main_load_new(char* mapFileName) objectShow(gDude, NULL); 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); colorPaletteLoad("color.pal");