diff --git a/projects/openrct2.vcxproj.user b/projects/openrct2.vcxproj.user index 2228a94c41..80981e45c6 100644 --- a/projects/openrct2.vcxproj.user +++ b/projects/openrct2.vcxproj.user @@ -1,12 +1,5 @@  - - $(TargetDir)\openrct2.exe - WindowsLocalDebugger - - - $(TargetDir) - false @@ -15,4 +8,9 @@ WindowsLocalDebugger $(TargetDir) + + $(TargetDir)\openrct2.exe + $(TargetDir) + WindowsLocalDebugger + \ No newline at end of file diff --git a/src/osinterface.c b/src/osinterface.c index 4f39c7efaa..5cbe3e71bc 100644 --- a/src/osinterface.c +++ b/src/osinterface.c @@ -142,7 +142,7 @@ static void osinterface_resize(int width, int height) RCT2_GLOBAL(0x009ABDEC, sint32) = (height >> 3) + 1; RCT2_CALLPROC_EBPSAFE(0x0066B905); // resize_gui() - RCT2_CALLPROC_EBPSAFE(0x006ED7E5); // gfx_invalidate_screen() + gfx_invalidate_screen(); } static void osinterface_update_palette(char* colours, int start_index, int num_colours) diff --git a/src/scenario.c b/src/scenario.c index 16cf640e3e..3a04e0b49a 100644 --- a/src/scenario.c +++ b/src/scenario.c @@ -299,6 +299,7 @@ static int scenario_load_basic(char *path) loc_67628F : return _eax; } + return 1; } CloseHandle(hFile); } diff --git a/src/window_game_bottom_toolbar.c b/src/window_game_bottom_toolbar.c index 3a017d0478..e3626a81f8 100644 --- a/src/window_game_bottom_toolbar.c +++ b/src/window_game_bottom_toolbar.c @@ -34,10 +34,12 @@ static enum WINDOW_GAME_BOTTOM_TOOLBAR_WIDGET_IDX { WIDX_MONEY, WIDX_GUESTS, WIDX_PARK_RATING, + WIDX_MIDDLE_OUTSET, WIDX_MIDDLE_INSET, WIDX_NEWS_SUBJECT, WIDX_NEWS_LOCATE, + WIDX_RIGHT_OUTSET, WIDX_RIGHT_INSET, WIDX_DATE @@ -227,11 +229,34 @@ static void window_game_bottom_toolbar_tooltip() */ static void window_game_bottom_toolbar_invalidate() { + int x; rct_window *w; rct_news_item *newsItem; __asm mov w, esi + // Anchor the middle and right panel to the right + x = RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_WIDTH, sint16); + w->width = x; + x--; + window_game_bottom_toolbar_widgets[WIDX_RIGHT_OUTSET].right = x; + x -= 2; + window_game_bottom_toolbar_widgets[WIDX_RIGHT_INSET].right = x; + x -= 115; + window_game_bottom_toolbar_widgets[WIDX_RIGHT_INSET].left = x; + x -= 2; + window_game_bottom_toolbar_widgets[WIDX_RIGHT_OUTSET].left = x; + x--; + window_game_bottom_toolbar_widgets[WIDX_MIDDLE_OUTSET].right = x; + x -= 2; + window_game_bottom_toolbar_widgets[WIDX_MIDDLE_INSET].right = x; + x -= 3; + window_game_bottom_toolbar_widgets[WIDX_NEWS_LOCATE].right = x; + x -= 23; + window_game_bottom_toolbar_widgets[WIDX_NEWS_LOCATE].left = x; + window_game_bottom_toolbar_widgets[WIDX_DATE].left = window_game_bottom_toolbar_widgets[WIDX_RIGHT_OUTSET].left + 2; + window_game_bottom_toolbar_widgets[WIDX_DATE].right = window_game_bottom_toolbar_widgets[WIDX_RIGHT_OUTSET].right - 2; + window_game_bottom_toolbar_widgets[WIDX_LEFT_INSET].type = WWT_EMPTY; window_game_bottom_toolbar_widgets[WIDX_RIGHT_INSET].type = WWT_EMPTY;