aboutsummaryrefslogtreecommitdiff
path: root/gui/newgui.cpp
diff options
context:
space:
mode:
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);