comparison mac/dw.m @ 767:9b0c22b58447

Don't fill a rectangle unless requested to
author mhessling@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 18 Mar 2011 03:38:24 +0000
parents 82cde14ec084
children 7a236fdcf4ba
comparison
equal deleted inserted replaced
766:82cde14ec084 767:9b0c22b58447
4018 [aPath moveToPoint:NSMakePoint(x, y)]; 4018 [aPath moveToPoint:NSMakePoint(x, y)];
4019 [aPath lineToPoint:NSMakePoint(x, y + height)]; 4019 [aPath lineToPoint:NSMakePoint(x, y + height)];
4020 [aPath lineToPoint:NSMakePoint(x + width, y + height)]; 4020 [aPath lineToPoint:NSMakePoint(x + width, y + height)];
4021 [aPath lineToPoint:NSMakePoint(x + width, y)]; 4021 [aPath lineToPoint:NSMakePoint(x + width, y)];
4022 [aPath closePath]; 4022 [aPath closePath];
4023 [aPath fill]; 4023 if(fill)
4024 [aPath fill];
4024 [aPath stroke]; 4025 [aPath stroke];
4025 [image unlockFocus]; 4026 [image unlockFocus];
4026 DW_MUTEX_UNLOCK; 4027 DW_MUTEX_UNLOCK;
4027 } 4028 }
4028 4029