]> Dogcows Code - chaz/openbox/commitdiff
fix RECT_CONTAINS, name clash
authorDana Jansens <danakj@orodu.net>
Thu, 4 Sep 2003 14:54:29 +0000 (14:54 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 4 Sep 2003 14:54:29 +0000 (14:54 +0000)
openbox/geom.h

index e20c660a70cc494ddb873abdbcc1d1bd4016fc9d..e410ecdaf18ce73cba3938f5c37ddf17ce41816d 100644 (file)
@@ -33,9 +33,9 @@ typedef struct _Rect {
                            (r1).width == (r2).width && \
                             (r1).height == (r2).height)
 
-#define RECT_CONTAINS(r, x, y) \
-    ((x) >= (r).x && (x) < (r).x + (r).width && \
-     (y) >= (r).y && (y) < (r).y + (r).height)
+#define RECT_CONTAINS(r, px, py) \
+    ((px) >= (r).x && (px) < (r).x + (r).width && \
+     (py) >= (r).y && (py) < (r).y + (r).height)
 #define RECT_CONTAINS_RECT(r, o) \
     ((o).x >= (r).x && (o).x + (o).width <= (r).x + (r).width && \
      (o).y >= (r).y && (o).y + (o).height <= (r).y + (r).height)
This page took 0.0234 seconds and 4 git commands to generate.