Changeset 3195 for trunk/macosx/TorrentCell.m
- Timestamp:
- Sep 27, 2007, 2:29:32 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/TorrentCell.m
r3194 r3195 69 69 @implementation TorrentCell 70 70 71 // Used to optimize drawing. They contain packed RGBA pixels for every color needed.72 #define BE OSSwapBigToHostConstInt3273 74 static uint32_t kRed = BE(0xFF6450FF), //255, 100, 8075 kBlue = BE(0x50A0FFFF), //80, 160, 25576 kBlue2 = BE(0x1E46B4FF), //30, 70, 18077 kGray = BE(0x969696FF), //150, 150, 15078 kGreen1 = BE(0x99FFCCFF), //153, 255, 20479 kGreen2 = BE(0x66FF99FF), //102, 255, 15380 kGreen3 = BE(0x00FF66FF), //0, 255, 10281 kWhite = BE(0xFFFFFFFF); //255, 255, 25582 83 71 //only called one, so don't worry about release 84 72 - (id) init … … 102 90 } 103 91 return self; 104 }105 106 - (id) copyWithZone: (NSZone *) zone107 {108 TorrentCell * copy = [super copyWithZone: zone];109 110 copy->fBitmap = nil;111 copy->fPieces = NULL;112 113 return copy;114 }115 116 - (void) dealloc117 {118 [fBitmap release];119 if (fPieces)120 free(fPieces);121 122 [super dealloc];123 92 } 124 93
Note: See TracChangeset
for help on using the changeset viewer.