Mercurial > hg > openttd
changeset 12121:da26b364cc6a draft
(svn r16535) -Fix (r16146): In one case a too small portion of the screen was marked dirty, when (un-)drawing selections.
author | frosch <frosch@openttd.org> |
---|---|
date | Mon, 08 Jun 2009 15:42:35 +0000 |
parents | 5ccf040e4f3e |
children | d530190c9171 |
files | src/viewport.cpp |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -1785,7 +1785,8 @@ static const int OVERLAY_WIDTH = 4; // part of selection sprites is drawn outside the selected area - MarkAllViewportsDirty(l - OVERLAY_WIDTH, t - OVERLAY_WIDTH, r + OVERLAY_WIDTH, b + OVERLAY_WIDTH); + /* For halftile foundations on SLOPE_STEEP_W the sprite extents some more towards the top */ + MarkAllViewportsDirty(l - OVERLAY_WIDTH, t - OVERLAY_WIDTH - TILE_HEIGHT, r + OVERLAY_WIDTH, b + OVERLAY_WIDTH); /* haven't we reached the topmost tile yet? */ if (top_x != x_start) {