Skip to content

Commit

Permalink
New signed binaries, finally fix the crasher related to drawing arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
daylen committed Jan 27, 2014
1 parent c7bb415 commit b8ae312
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Stockfish/NSBezierPath+Arrowhead.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ + (NSBezierPath *)bezierPathWithArrowFromPoint:(CGPoint)startPoint

[path moveToPoint:points[0]];
for (int i = 0; i < kArrowPointCount; i++) {
if (isnan(points[i].x) || isnan(points[i].y)) {
// we have a problem.
NSLog(@"Returning empty bezier path");
return [NSBezierPath bezierPath];
}
[path lineToPoint:points[i]];
}

Expand Down
4 changes: 4 additions & 0 deletions Stockfish/SFMArrowView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ @implementation SFMArrowView

- (void)drawRect:(NSRect)dirtyRect
{
if (self.fromSquare == self.toSquare) {
return;
}

[[NSColor colorWithRed:1 green:0 blue:0 alpha:0.5] set];

CGFloat arrowLineWidth = self.squareSideLength * ARROW_LINE_WIDTH_AS_PERCENT_OF_SQUARE_WIDTH;
Expand Down
Binary file modified Stockfish/stockfish-64
Binary file not shown.
Binary file modified Stockfish/stockfish-sse42
Binary file not shown.

0 comments on commit b8ae312

Please sign in to comment.