Mercurial > dwindows
comparison mac/dw.m @ 1279:ee9a233f1b42
Fixed DW_DRAW_FULL for arcs on Mac. Rectangle was being created incorrectly.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 30 Oct 2011 23:58:19 +0000 |
parents | 107e38a29eeb |
children | d10969835d2d |
comparison
equal
deleted
inserted
replaced
1278:700dc6818431 | 1279:ee9a233f1b42 |
---|---|
5269 [color set]; | 5269 [color set]; |
5270 | 5270 |
5271 /* Special case of a full circle/oval */ | 5271 /* Special case of a full circle/oval */ |
5272 if(flags & DW_DRAW_FULL) | 5272 if(flags & DW_DRAW_FULL) |
5273 { | 5273 { |
5274 [aPath appendBezierPathWithOvalInRect:NSMakeRect(x1, y1, x2, y2)]; | 5274 [aPath appendBezierPathWithOvalInRect:NSMakeRect(x1, y1, x2 - x1, y2 - y1)]; |
5275 } | 5275 } |
5276 else | 5276 else |
5277 { | 5277 { |
5278 [aPath moveToPoint:NSMakePoint(x1, y1)]; | 5278 [aPath moveToPoint:NSMakePoint(x1, y1)]; |
5279 /* Calculate the midpoint */ | 5279 /* Calculate the midpoint */ |