diff tools/libgutil.c @ 2486:6d12670e0248

Rename DM_SWAP() macro to DM_SWAP_IF().
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 28 Apr 2020 14:45:44 +0300
parents ef08af6887b7
children
line wrap: on
line diff
--- a/tools/libgutil.c	Tue Apr 28 14:16:50 2020 +0300
+++ b/tools/libgutil.c	Tue Apr 28 14:45:44 2020 +0300
@@ -26,7 +26,7 @@
               cx1 = screen->clip_rect.x + screen->clip_rect.w - 1,
               cy1 = screen->clip_rect.y + screen->clip_rect.h - 1;
 
-    DM_SWAP(int, x0, x1);
+    DM_SWAP_IF(int, x0, x1);
     if (yc < cy0|| yc > cy1 || x1 < cx0 || x0 > cx1) return;
     if (x0 < cx0) x0 = cx0;
     if (x1 > cx1) x1 = cx1;
@@ -59,7 +59,7 @@
               cx1 = screen->clip_rect.x + screen->clip_rect.w - 1,
               cy1 = screen->clip_rect.y + screen->clip_rect.h - 1;
 
-    DM_SWAP(int, y0, y1);
+    DM_SWAP_IF(int, y0, y1);
     if (xc < cx0 || xc > cx1 || y1 < cy0 || y0 > cy1) return;
     if (y0 < cy0) y0 = cy0;
     if (y1 > cy1) y1 = cy1;