Changeset 988 for trunk/macosx/PiecesView.m
- Timestamp:
- Oct 6, 2006, 8:10:15 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/PiecesView.m
r980 r988 71 71 [fGreenPiece unlockFocus]; 72 72 73 //green box image 74 fRedPiece = [[NSImage alloc] initWithSize: size]; 75 76 [fRedPiece lockFocus]; 77 [[NSColor redColor] set]; 78 [bp fill]; 79 [fRedPiece unlockFocus]; 80 73 81 //blue 1 box image 74 82 fBlue1Piece = [[NSImage alloc] initWithSize: size]; 75 83 76 84 [fBlue1Piece lockFocus]; 77 [[NSColor colorWithCalibratedRed: 0. 777 green: 0.906blue: 1.0 alpha: 1.0] set];85 [[NSColor colorWithCalibratedRed: 0.682 green: 0.839 blue: 1.0 alpha: 1.0] set]; 78 86 [bp fill]; 79 87 [fBlue1Piece unlockFocus]; … … 83 91 84 92 [fBlue2Piece lockFocus]; 85 [[NSColor colorWithCalibratedRed: 0. 682 green: 0.839blue: 1.0 alpha: 1.0] set];93 [[NSColor colorWithCalibratedRed: 0.506 green: 0.745 blue: 1.0 alpha: 1.0] set]; 86 94 [bp fill]; 87 95 [fBlue2Piece unlockFocus]; … … 91 99 92 100 [fBlue3Piece lockFocus]; 93 [[NSColor colorWithCalibratedRed: 0. 506 green: 0.745 blue: 1.0 alpha: 1.0] set];101 [[NSColor colorWithCalibratedRed: 0.35 green: 0.65 blue: 1.0 alpha: 1.0] set]; 94 102 [bp fill]; 95 103 [fBlue3Piece unlockFocus]; … … 105 113 [fBack release]; 106 114 [fWhitePiece release]; 115 [fRedPiece release]; 107 116 [fGreenPiece release]; 108 117 [fBlue1Piece release]; … … 182 191 183 192 pieceImage = nil; 184 185 193 piece = pieces[index]; 186 194 if (piece < 0) 187 195 { 188 if (first || fPieces[index] != -1)196 if (first || fPieces[index] == -2) 189 197 { 190 198 fPieces[index] = -1; 191 199 pieceImage = fGreenPiece; 192 200 } 201 else if (fPieces[index] != -1) 202 { 203 fPieces[index] = -2; 204 pieceImage = fRedPiece; 205 } 206 else; 193 207 } 194 208 else if (piece == 0)
Note: See TracChangeset
for help on using the changeset viewer.