aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorMax Horn2007-12-09 14:48:36 +0000
committerMax Horn2007-12-09 14:48:36 +0000
commit0758feea628249e6cdc8d194057dc08905ccdcc1 (patch)
tree2d3d34620962d0249f7f7d81a0dbce580748179f /engines/agi
parentb1a8b8a76be67d126172c1f29a0d1c74222cf694 (diff)
downloadscummvm-rg350-0758feea628249e6cdc8d194057dc08905ccdcc1.tar.gz
scummvm-rg350-0758feea628249e6cdc8d194057dc08905ccdcc1.tar.bz2
scummvm-rg350-0758feea628249e6cdc8d194057dc08905ccdcc1.zip
cleanup
svn-id: r29792
Diffstat (limited to 'engines/agi')
-rw-r--r--engines/agi/picture.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/agi/picture.cpp b/engines/agi/picture.cpp
index 5b55555a6a..32a2b5c01e 100644
--- a/engines/agi/picture.cpp
+++ b/engines/agi/picture.cpp
@@ -96,9 +96,7 @@ void PictureMgr::drawLine(int x1, int y1, int x2, int y2) {
if (x1 == x2) {
if (y1 > y2) {
- y = y1;
- y1 = y2;
- y2 = y;
+ SWAP(y1, y2);
}
for (; y1 <= y2; y1++)
@@ -111,9 +109,7 @@ void PictureMgr::drawLine(int x1, int y1, int x2, int y2) {
if (y1 == y2) {
if (x1 > x2) {
- x = x1;
- x1 = x2;
- x2 = x;
+ SWAP(x1, x2);
}
for (; x1 <= x2; x1++)
putVirtPixel(x1, y1);