diff options
author | truelight <truelight@openttd.org> | 2007-05-19 22:48:04 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-05-19 22:48:04 +0000 |
commit | d2c750b2c944e86680b4f64e4f7fab9b96356807 (patch) | |
tree | 69918d97ffcd2399c422767b0ca61c1c2c898aa4 /src/station.cpp | |
parent | 6670d1c01864cf53238399e8c7ce6ab58a292560 (diff) | |
download | openttd-d2c750b2c944e86680b4f64e4f7fab9b96356807.tar.xz |
(svn r9884) -Feature: 2 new zoom-out levels: 8 times and 16 times
-Codechange: unified the blitter function so we have 1 function for all zoom-levels
-Codechange: make most of the label functions work with zoom-level instead of magic numbers and big switches per zoom-level
-Codechange: MakeXXXDirty() functions didn't take into account zoom-level, but just used the biggest possible value
-Codechange: simplified blitter functions to avoid code duplication
Diffstat (limited to 'src/station.cpp')
-rw-r--r-- | src/station.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station.cpp b/src/station.cpp index f788ac7cb..2c17406f0 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -125,8 +125,8 @@ void Station::MarkDirty() const MarkAllViewportsDirty( sign.left - 6, sign.top, - sign.left + (sign.width_1 << 2) + 12, - sign.top + 48); + sign.left + ScaleByZoom(sign.width_1 + 12, _cur_dpi->zoom), + sign.top + ScaleByZoom(12, _cur_dpi->zoom)); } } |