1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-31 03:12:44 +00:00

flash orange instead of red when piece completes, since red is sometimes interpreted negatively

This commit is contained in:
Mitchell Livingston 2007-01-11 21:19:31 +00:00
parent b04fda9a14
commit e6701b077d
2 changed files with 9 additions and 9 deletions

View file

@ -29,7 +29,7 @@
{
int8_t * fPieces;
NSImage * fBack, * fWhitePiece, * fBluePiece, * fRedPiece,
NSImage * fBack, * fWhitePiece, * fBluePiece, * fOrangePiece,
* fGreen1Piece, * fGreen2Piece, * fGreen3Piece,
* fBlue1Piece, * fBlue2Piece, * fBlue3Piece, * fBlue4Piece;

View file

@ -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;
}