From 8275a98e1f2e5adc770dc68492927416ddbb6fe6 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 8 Jul 2009 08:30:35 +0000 Subject: (svn r16764) -Codechange: unify the way viewport signs are marked dirty --- src/signs.cpp | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/signs.cpp') diff --git a/src/signs.cpp b/src/signs.cpp index 3102d7973..2744c31c4 100644 --- a/src/signs.cpp +++ b/src/signs.cpp @@ -53,26 +53,6 @@ void UpdateAllSignVirtCoords() FOR_ALL_SIGNS(si) UpdateSignVirtCoords(si); } -/** - * Marks the region of a sign as dirty. - * - * This function marks the sign in all viewports as dirty for repaint. - * - * @param si Pointer to the Sign - * @ingroup dirty - */ -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, ZOOM_LVL_MAX), - si->sign.top + ScaleByZoom(12, ZOOM_LVL_MAX)); -} - /** * * Initialize the signs -- cgit v1.2.3-54-g00ecf