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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user