Skip to content
Browse files

Changed order of fill/stroke drawing.

  • Loading branch information...
1 parent 6a767a7 commit a8fc5d63937861b7c4d3b4c6141da8ea405fcf14 @uliwitness committed May 2, 2011
Showing with 5 additions and 3 deletions.
  1. +1 −1 ULIPaintOvalTool.m
  2. +3 −1 ULIPaintRectangleTool.m
  3. +1 −1 ULIPaintRoundedRectangleTool.m
View
2 ULIPaintOvalTool.m
@@ -44,8 +44,8 @@ -(void) drawTemporaryTrackingToolShapeFrom: (NSPoint*)prevPos to: (NSPoint)cur
[[owner fillColor] setFill];
[path setLineWidth: [owner lineSize].width];
[path appendBezierPathWithOvalInRect: box];
- [path stroke];
[path fill];
+ [path stroke];
[path release];
box = [self rectWithLineSizeFrom: [owner initialPos] to: currPos];
View
4 ULIPaintRectangleTool.m
@@ -39,8 +39,10 @@ -(void) drawTemporaryTrackingToolShapeFrom: (NSPoint*)prevPos to: (NSPoint)cur
NSRect box = [self rectFrom: [owner initialPos] to: currPos];
NSRect oldBox = [self rectWithLineSizeFrom: [owner initialPos] to: *prevPos];
- [[owner lineColor] set];
+ [[owner lineColor] setStroke];
+ [[owner fillColor] setFill];
[NSBezierPath setDefaultLineWidth: [owner lineSize].width];
+ [NSBezierPath fillRect: box];
[NSBezierPath strokeRect: box];
box = [self rectWithLineSizeFrom: [owner initialPos] to: currPos];
View
2 ULIPaintRoundedRectangleTool.m
@@ -57,8 +57,8 @@ -(void) drawTemporaryTrackingToolShapeFrom: (NSPoint*)prevPos to: (NSPoint)cur
[[owner lineColor] setStroke];
[[owner fillColor] setFill];
[NSBezierPath setDefaultLineWidth: [owner lineSize].width];
- [NSBezierPath strokeRoundRectInRect: box radius: mCornerRadius];
[NSBezierPath fillRoundRectInRect: box radius: mCornerRadius];
+ [NSBezierPath strokeRoundRectInRect: box radius: mCornerRadius];
box = [self rectWithLineSizeFrom: [owner initialPos] to: currPos];

0 comments on commit a8fc5d6

Please sign in to comment.
Something went wrong with that request. Please try again.