summaryrefslogtreecommitdiff
path: root/src/signs.cpp
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-05-19 22:48:04 +0000
committertruelight <truelight@openttd.org>2007-05-19 22:48:04 +0000
commit6954045bb4872b15677562e73d0e028c640ac8a7 (patch)
tree69918d97ffcd2399c422767b0ca61c1c2c898aa4 /src/signs.cpp
parent1ce633b894d0c56c42b0ad696378f1236bcfddb1 (diff)
downloadopenttd-6954045bb4872b15677562e73d0e028c640ac8a7.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/signs.cpp')
-rw-r--r--src/signs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/signs.cpp b/src/signs.cpp
index db8d42def..428fdcf40 100644
--- a/src/signs.cpp
+++ b/src/signs.cpp
@@ -67,8 +67,8 @@ static void MarkSignDirty(Sign *si)
MarkAllViewportsDirty(
si->sign.left - 6,
si->sign.top - 3,
- si->sign.left + si->sign.width_1 * 4 + 12,
- si->sign.top + 45);
+ si->sign.left + ScaleByZoom(si->sign.width_1 + 12, _cur_dpi->zoom),
+ si->sign.top + ScaleByZoom(12, _cur_dpi->zoom));
}
/**