summaryrefslogtreecommitdiff
path: root/rubik.c
diff options
context:
space:
mode:
Diffstat (limited to 'rubik.c')
-rw-r--r--rubik.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rubik.c b/rubik.c
index 6b0e5ce..e925008 100644
--- a/rubik.c
+++ b/rubik.c
@@ -544,11 +544,11 @@ static void rubikPaintInside (CompScreen *s,
x = ((float) w->attrib.x)/((float) s->width);
- float wh1 = maximum (y, h1);
- float wh2 = minimum (y+height, h2);
+ float wh1 = MAX (y, h1);
+ float wh2 = MIN (y+height, h2);
- float wv1 = maximum (x, v1);
- float wv2 = minimum (x+width, v2);
+ float wv1 = MAX (x, v1);
+ float wv2 = MIN (x+width, v2);
if (y>h1)
h1=y;