aboutsummaryrefslogtreecommitdiff
path: root/gui/newgui.cpp
diff options
context:
space:
mode:
authorMax Horn2002-11-05 22:34:50 +0000
committerMax Horn2002-11-05 22:34:50 +0000
commit56a41a26c089983e67dcde1909219224567d4341 (patch)
tree25824a55ba7cd5b4ad449a9de9a2e922e24b005e /gui/newgui.cpp
parent5c0b145315659e911ea9bb4cccce59a32631c4ff (diff)
downloadscummvm-rg350-56a41a26c089983e67dcde1909219224567d4341.tar.gz
scummvm-rg350-56a41a26c089983e67dcde1909219224567d4341.tar.bz2
scummvm-rg350-56a41a26c089983e67dcde1909219224567d4341.zip
make buttons 2 pixel wider (fixes 'Options' button); don't use non-portable hack to swap ints
svn-id: r5427
Diffstat (limited to 'gui/newgui.cpp')
-rw-r--r--gui/newgui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/newgui.cpp b/gui/newgui.cpp
index 7e98d8d6ed..d070b5ab25 100644
--- a/gui/newgui.cpp
+++ b/gui/newgui.cpp
@@ -286,10 +286,10 @@ void NewGui::line(int x, int y, int x2, int y2, int16 color)
int16 *ptr;
if (x2 < x)
- x2 ^= x ^= x2 ^= x; // Swap x2 and x
+ SWAP(x2, x);
if (y2 < y)
- y2 ^= y ^= y2 ^= y; // Swap y2 and y
+ SWAP(y2, y);
ptr = getBasePtr(x, y);