diff options
author | rubidium <rubidium@openttd.org> | 2009-07-08 08:30:35 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-08 08:30:35 +0000 |
commit | 8275a98e1f2e5adc770dc68492927416ddbb6fe6 (patch) | |
tree | cc2a2bbfd9544a2488bd50e8c798b1234ebb5c80 /src/station.cpp | |
parent | 2d907d902ac830d3020fe21cea9299073577d7f3 (diff) | |
download | openttd-8275a98e1f2e5adc770dc68492927416ddbb6fe6.tar.xz |
(svn r16764) -Codechange: unify the way viewport signs are marked dirty
Diffstat (limited to 'src/station.cpp')
-rw-r--r-- | src/station.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/station.cpp b/src/station.cpp index efaab8565..3f594cefe 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -155,15 +155,7 @@ void Station::MarkDirty() const { if (this->sign.width_1 != 0) { InvalidateWindowWidget(WC_STATION_VIEW, index, SVW_CAPTION); - - /* We use ZOOM_LVL_MAX here, as every viewport can have an other zoom, - * and there is no way for us to know which is the biggest. So make the - * biggest area dirty, and we are safe for sure. */ - MarkAllViewportsDirty( - this->sign.left - 6, - this->sign.top, - this->sign.left + ScaleByZoom(this->sign.width_1 + 12, ZOOM_LVL_MAX), - this->sign.top + ScaleByZoom(12, ZOOM_LVL_MAX)); + this->sign.MarkDirty(); } } |