From 0758feea628249e6cdc8d194057dc08905ccdcc1 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 9 Dec 2007 14:48:36 +0000 Subject: cleanup svn-id: r29792 --- engines/agi/picture.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'engines/agi') 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); -- cgit v1.2.3