File diff r14125:3ee08ca0423e → r14126:f23988064e74
src/viewport.cpp
Show inline comments
 
@@ -1177,25 +1177,25 @@ void ViewportSign::UpdatePosition(int ce
 
	_cur_fontsize = FS_NORMAL;
 

	
 
	this->MarkDirty();
 
}
 

	
 
/**
 
 * Mark the sign dirty in all viewports.
 
 *
 
 * @ingroup dirty
 
 */
 
void ViewportSign::MarkDirty() const
 
{
 
	/* We use ZOOM_LVL_MAX here, as every viewport can have an other zoom,
 
	/* We use ZOOM_LVL_MAX here, as every viewport can have another 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.
 
	 * We also add 1 to make sure the whole thing is redrawn. */
 
	MarkAllViewportsDirty(
 
		this->center - ScaleByZoom(this->width_normal / 2 + 1, ZOOM_LVL_MAX),
 
		this->top    - ScaleByZoom(1, ZOOM_LVL_MAX),
 
		this->center + ScaleByZoom(this->width_normal / 2 + 1, ZOOM_LVL_MAX),
 
		this->top    + ScaleByZoom(VPSM_TOP + FONT_HEIGHT_NORMAL + VPSM_BOTTOM + 1, ZOOM_LVL_MAX));
 
}
 

	
 
static void ViewportDrawTileSprites(const TileSpriteToDrawVector *tstdv)
 
{