summaryrefslogtreecommitdiff
path: root/src/smallmap_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-11 22:21:54 +0000
committerrubidium <rubidium@openttd.org>2009-09-11 22:21:54 +0000
commit1dc2284e0c5ec9240379ea105317cb0b04e1c143 (patch)
tree8aeb698b260c4c2c4a19d461c53ff428564d9ab6 /src/smallmap_gui.cpp
parenta10d84197028de074d41d16e893bf041541cb566 (diff)
downloadopenttd-1dc2284e0c5ec9240379ea105317cb0b04e1c143.tar.xz
(svn r17506) -Fix [FS#3191]: signs partly drawn out of the rectangle in 4/8x zoom out.
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r--src/smallmap_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp
index ae360fea2..7e1757005 100644
--- a/src/smallmap_gui.cpp
+++ b/src/smallmap_gui.cpp
@@ -798,13 +798,13 @@ public:
this->RemapX(TileX(t->xy)),
this->RemapY(TileY(t->xy)),
0);
- x = pt.x - this->subscroll + 3 - (t->sign.width_small >> 1);
+ x = pt.x - this->subscroll - (t->sign.width_small >> 1);
y = pt.y;
/* Check if the town sign is within bounds */
if (x + t->sign.width_small > dpi->left &&
x < dpi->left + dpi->width &&
- y + 6 > dpi->top &&
+ y + FONT_HEIGHT_SMALL > dpi->top &&
y < dpi->top + dpi->height) {
/* And draw it. */
SetDParam(0, t->index);