comparison event.c @ 552:98a0d10e9918

removed useless abs() calls
author arg@mig29
date Mon, 30 Oct 2006 12:04:08 +0100
parents 798b906378d6
children 5094facab5c7
comparison
equal deleted inserted replaced
551:798b906378d6 552:98a0d10e9918
50 c->y = ocy + (ev.xmotion.y - y1); 50 c->y = ocy + (ev.xmotion.y - y1);
51 if(abs(c->x) < sx + SNAP) 51 if(abs(c->x) < sx + SNAP)
52 c->x = sx; 52 c->x = sx;
53 if(abs(c->y) < sy + bh + SNAP) 53 if(abs(c->y) < sy + bh + SNAP)
54 c->y = sy + bh; 54 c->y = sy + bh;
55 if(abs(c->x + c->w) > sx + sw - SNAP) 55 if(c->x + c->w > sx + sw - SNAP)
56 c->x = sw - c->w - 2 * BORDERPX; 56 c->x = sw - c->w - 2 * BORDERPX;
57 if(abs(c->y + c->h) > sy + sh - SNAP) 57 if(c->y + c->h > sy + sh - SNAP)
58 c->y = sh - c->h - 2 * BORDERPX; 58 c->y = sh - c->h - 2 * BORDERPX;
59 resize(c, False, TopLeft); 59 resize(c, False, TopLeft);
60 break; 60 break;
61 } 61 }
62 } 62 }