summaryrefslogtreecommitdiff
path: root/src/widget.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/widget.cpp
parentcaab095e4ea202ccbe09b4c3f2ea6e36070bef29 (diff)
downloadopenttd-8652a4db76c978598918bfdb600a3453d794930a.tar.xz
Cleanup: Give `SetDirtyBlocks` a more descriptive name.
Diffstat (limited to 'src/widget.cpp')
-rw-r--r--src/widget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget.cpp b/src/widget.cpp
index eb683c412..579b7efb6 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -774,7 +774,7 @@ void NWidgetBase::SetDirty(const Window *w) const
{
int abs_left = w->left + this->pos_x;
int abs_top = w->top + this->pos_y;
- SetDirtyBlocks(abs_left, abs_top, abs_left + this->current_x, abs_top + this->current_y);
+ AddDirtyBlock(abs_left, abs_top, abs_left + this->current_x, abs_top + this->current_y);
}
/**