comparison mac/dw.m @ 943:675c12b1b90e

Changed check from x and y not being zero to x and y being greater than zero since it seems values can be negative on Mac.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 28 Apr 2011 15:01:59 +0000
parents 3c9dfb004df6
children cdb7a53e5515
comparison
equal deleted inserted replaced
942:3c9dfb004df6 943:675c12b1b90e
2513 return 0; 2513 return 0;
2514 } 2514 }
2515 2515
2516 static void _do_resize(Box *thisbox, int x, int y) 2516 static void _do_resize(Box *thisbox, int x, int y)
2517 { 2517 {
2518 if(x != 0 && y != 0) 2518 if(x > 0 && y > 0)
2519 { 2519 {
2520 if(thisbox) 2520 if(thisbox)
2521 { 2521 {
2522 int usedx = 0, usedy = 0, usedpadx = 0, usedpady = 0, depth = 0; 2522 int usedx = 0, usedy = 0, usedpadx = 0, usedpady = 0, depth = 0;
2523 2523