mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r16535) -Fix (r16146): In one case a too small portion of the screen was marked dirty, when (un-)drawing selections.
This commit is contained in:
parent
1df029de1d
commit
53a711ede0
@ -1785,7 +1785,8 @@ static void SetSelectionTilesDirty()
|
||||
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user