1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-22 23:33:04 +01:00

Use RemoveViewport helper function (#13104)

This commit is contained in:
Duncan
2020-10-06 10:27:56 +01:00
committed by GitHub
parent 74d4182c95
commit eb3f3edc1b
9 changed files with 14 additions and 58 deletions

View File

@@ -220,11 +220,7 @@ void window_close(rct_window* w)
window_event_close_call(window.get());
// Remove viewport
if (window->viewport != nullptr)
{
window->viewport->width = 0;
window->viewport = nullptr;
}
window->RemoveViewport();
// Invalidate the window (area)
window->Invalidate();