src/signs.cpp
changeset 6700 3c214e54cd1f
parent 6653 b20fcfed0847
child 6943 1914f26aee04
equal deleted inserted replaced
6699:d2f35126c1a6 6700:3c214e54cd1f
    62  *
    62  *
    63  * @param si Pointer to the Sign
    63  * @param si Pointer to the Sign
    64  */
    64  */
    65 static void MarkSignDirty(Sign *si)
    65 static void MarkSignDirty(Sign *si)
    66 {
    66 {
       
    67 	/* We use ZOOM_LVL_MAX here, as every viewport can have an other zoom,
       
    68 		*  and there is no way for us to know which is the biggest. So make the
       
    69 		*  biggest area dirty, and we are safe for sure. */
    67 	MarkAllViewportsDirty(
    70 	MarkAllViewportsDirty(
    68 		si->sign.left - 6,
    71 		si->sign.left - 6,
    69 		si->sign.top  - 3,
    72 		si->sign.top  - 3,
    70 		si->sign.left + ScaleByZoom(si->sign.width_1 + 12, _cur_dpi->zoom),
    73 		si->sign.left + ScaleByZoom(si->sign.width_1 + 12, ZOOM_LVL_MAX),
    71 		si->sign.top  + ScaleByZoom(12, _cur_dpi->zoom));
    74 		si->sign.top  + ScaleByZoom(12, ZOOM_LVL_MAX));
    72 }
    75 }
    73 
    76 
    74 /**
    77 /**
    75  *
    78  *
    76  * Allocates a new sign
    79  * Allocates a new sign