From e6701b077df1262ba818d69b9b3bfd9d3e4020fa Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Thu, 11 Jan 2007 21:19:31 +0000 Subject: [PATCH] flash orange instead of red when piece completes, since red is sometimes interpreted negatively --- macosx/PiecesView.h | 2 +- macosx/PiecesView.m | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/macosx/PiecesView.h b/macosx/PiecesView.h index ef26d6f2c..eaf6908bb 100644 --- a/macosx/PiecesView.h +++ b/macosx/PiecesView.h @@ -29,7 +29,7 @@ { int8_t * fPieces; - NSImage * fBack, * fWhitePiece, * fBluePiece, * fRedPiece, + NSImage * fBack, * fWhitePiece, * fBluePiece, * fOrangePiece, * fGreen1Piece, * fGreen2Piece, * fGreen3Piece, * fBlue1Piece, * fBlue2Piece, * fBlue3Piece, * fBlue4Piece; diff --git a/macosx/PiecesView.m b/macosx/PiecesView.m index 87c04dba7..0597f89e2 100644 --- a/macosx/PiecesView.m +++ b/macosx/PiecesView.m @@ -62,13 +62,13 @@ [bp fill]; [fWhitePiece unlockFocus]; - //red box image - fRedPiece = [[NSImage alloc] initWithSize: size]; + //orange box image + fOrangePiece = [[NSImage alloc] initWithSize: size]; - [fRedPiece lockFocus]; - [[NSColor redColor] set]; + [fOrangePiece lockFocus]; + [[NSColor orangeColor] set]; [bp fill]; - [fRedPiece unlockFocus]; + [fOrangePiece unlockFocus]; //green 1 box image fGreen1Piece = [[NSImage alloc] initWithSize: size]; @@ -148,7 +148,7 @@ [fBack release]; [fWhitePiece release]; - [fRedPiece release]; + [fOrangePiece release]; [fBluePiece release]; [fGreen1Piece release]; [fGreen2Piece release]; @@ -253,7 +253,7 @@ else if (fPieces[index] != -1) { fPieces[index] = -2; - pieceImage = fRedPiece; + pieceImage = fOrangePiece; } else; } @@ -303,7 +303,7 @@ else if (fPieces[index] != -1) { fPieces[index] = -2; - pieceImage = fRedPiece; + pieceImage = fOrangePiece; } else; }