1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 07:14:31 +01:00

Refactor window functions to take references 4

This commit is contained in:
Hielke Morsink
2022-07-31 00:25:33 +02:00
parent 523bb8136e
commit a258008bef
73 changed files with 510 additions and 514 deletions

View File

@@ -7,7 +7,7 @@
void rct_window::SetLocation(const CoordsXYZ& coords)
{
window_scroll_to_location(this, coords);
window_scroll_to_location(*this, coords);
flags &= ~WF_SCROLLING_TO_LOCATION;
}
@@ -20,7 +20,7 @@ void rct_window::ScrollToViewport()
auto mainWindow = window_get_main();
if (mainWindow != nullptr)
window_scroll_to_location(mainWindow, newCoords);
window_scroll_to_location(*mainWindow, newCoords);
}
void rct_window::Invalidate()