summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorTechGeekNZ <git@tech.geek.nz>2020-06-08 10:38:06 +1200
committerCharles Pigott <charlespigott@googlemail.com>2020-06-09 13:15:47 +0100
commit8652a4db76c978598918bfdb600a3453d794930a (patch)
tree2f767454702cdcdedd28b1335fff88c2ed416ab6 /src/window.cpp
parentcaab095e4ea202ccbe09b4c3f2ea6e36070bef29 (diff)
downloadopenttd-8652a4db76c978598918bfdb600a3453d794930a.tar.xz
Cleanup: Give `SetDirtyBlocks` a more descriptive name.
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 30fa4d3d1..e7bc6d2c4 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -983,7 +983,7 @@ void DrawOverlappedWindowForAll(int left, int top, int right, int bottom)
*/
void Window::SetDirty() const
{
- SetDirtyBlocks(this->left, this->top, this->left + this->width, this->top + this->height);
+ AddDirtyBlock(this->left, this->top, this->left + this->width, this->top + this->height);
}
/**
@@ -3493,7 +3493,7 @@ static int PositionWindow(Window *w, WindowClass clss, int setting)
default: w->left = 0; break;
}
if (w->viewport != nullptr) w->viewport->left += w->left - old_left;
- SetDirtyBlocks(0, w->top, _screen.width, w->top + w->height); // invalidate the whole row
+ AddDirtyBlock(0, w->top, _screen.width, w->top + w->height); // invalidate the whole row
return w->left;
}