summaryrefslogtreecommitdiff
path: root/src/signs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/signs.cpp')
-rw-r--r--src/signs.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/signs.cpp b/src/signs.cpp
index 428fdcf40..8f3f0f365 100644
--- a/src/signs.cpp
+++ b/src/signs.cpp
@@ -64,11 +64,14 @@ void UpdateAllSignVirtCoords()
*/
static void MarkSignDirty(Sign *si)
{
+ /* 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(
si->sign.left - 6,
si->sign.top - 3,
- si->sign.left + ScaleByZoom(si->sign.width_1 + 12, _cur_dpi->zoom),
- si->sign.top + ScaleByZoom(12, _cur_dpi->zoom));
+ si->sign.left + ScaleByZoom(si->sign.width_1 + 12, ZOOM_LVL_MAX),
+ si->sign.top + ScaleByZoom(12, ZOOM_LVL_MAX));
}
/**