summaryrefslogtreecommitdiff
path: root/src/game/GameView.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-06-11 12:48:34 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-06-11 12:48:34 (GMT)
commitf6f83cc276a7a1b5d8d295440fd0adff7bacf59a (patch)
treeade4be3f9ec13f612c3b5ba0f6e95ab321d7eebc /src/game/GameView.cpp
parent3205df3a2188e6e314d7393381403dd04cd85623 (diff)
downloadpowder-f6f83cc276a7a1b5d8d295440fd0adff7bacf59a.zip
powder-f6f83cc276a7a1b5d8d295440fd0adff7bacf59a.tar.gz
Correct overlapping rectangles with translucent stamp selection
Diffstat (limited to 'src/game/GameView.cpp')
-rw-r--r--src/game/GameView.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp
index 26a4311..8abcca6 100644
--- a/src/game/GameView.cpp
+++ b/src/game/GameView.cpp
@@ -957,8 +957,8 @@ void GameView::OnDraw()
g->fillrect(0, 0, XRES, y1, 0, 0, 0, 100);
g->fillrect(0, y2, XRES, YRES-y2, 0, 0, 0, 100);
- g->fillrect(0, y1-1, x1, (y2-y1)+2, 0, 0, 0, 100);
- g->fillrect(x2, y1-1, XRES-x2, (y2-y1)+2, 0, 0, 0, 100);
+ g->fillrect(0, y1, x1, (y2-y1), 0, 0, 0, 100);
+ g->fillrect(x2, y1, XRES-x2, (y2-y1), 0, 0, 0, 100);
g->xor_rect(x1, y1, (x2-x1)+1, (y2-y1)+1);
}