src/signs.cpp
branchgamebalance
changeset 9912 1ac8aac92385
parent 9911 0b8b245a2391
child 9913 e79cd19772dd
equal deleted inserted replaced
9911:0b8b245a2391 9912:1ac8aac92385
    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