summaryrefslogtreecommitdiff
path: root/src/game/GameView.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-01-04 18:54:25 (GMT)
committer jacob1 <jfu614@gmail.com>2013-01-04 18:54:25 (GMT)
commit1b2e7b3c70bf72b069786c1ccd2a782028ae84ce (patch)
tree3e2ed576045bb83ae6cb973b18898afdbed0fba4 /src/game/GameView.cpp
parent8e50abcab956b7cf842a7891bcb1ceac40caf5d4 (diff)
downloadpowder-1b2e7b3c70bf72b069786c1ccd2a782028ae84ce.zip
powder-1b2e7b3c70bf72b069786c1ccd2a782028ae84ce.tar.gz
fix Ctrl+x being one pixel off, better xor_rect from tpt, delete test.c
Diffstat (limited to 'src/game/GameView.cpp')
-rw-r--r--src/game/GameView.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp
index f8d8cd3..dfd4b40 100644
--- a/src/game/GameView.cpp
+++ b/src/game/GameView.cpp
@@ -1847,10 +1847,10 @@ void GameView::OnDraw()
y2 = YRES-1;
ren->fillrect(0, 0, XRES, y1, 0, 0, 0, 100);
- ren->fillrect(0, y2, XRES, YRES-y2, 0, 0, 0, 100);
+ ren->fillrect(0, y2+1, XRES, YRES-y2-1, 0, 0, 0, 100);
- ren->fillrect(0, y1, x1, (y2-y1), 0, 0, 0, 100);
- ren->fillrect(x2, y1, XRES-x2, (y2-y1), 0, 0, 0, 100);
+ ren->fillrect(0, y1, x1, (y2-y1)+1, 0, 0, 0, 100);
+ ren->fillrect(x2+1, y1, XRES-x2-1, (y2-y1)+1, 0, 0, 0, 100);
ren->xor_rect(x1, y1, (x2-x1)+1, (y2-y1)+1);
}