Refactor window functions to take references 1

This commit is contained in:
Hielke Morsink committed 2022-07-31 17:23:15 +02:00
1 parent 889293f2b7
commit 76c1bc8980
57 files changed
+210 -210

No files matched your search

+2 -2
View File
@@ -392,7 +392,7 @@ public:
{
widgets = window_object_load_error_widgets;
WindowInitScrollWidgets(this);
WindowInitScrollWidgets(*this);
colours[0] = COLOUR_LIGHT_BLUE;
colours[1] = COLOUR_LIGHT_BLUE;
colours[2] = COLOUR_LIGHT_BLUE;
@@ -485,7 +485,7 @@ public:
void OnDraw(rct_drawpixelinfo& dpi) override
{
WindowDrawWidgets(this, &dpi);
WindowDrawWidgets(*this, &dpi);
// Draw explanatory message
auto ft = Formatter();