Changeset 5942
- Timestamp:
- May 27, 2008, 4:49:08 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/TorrentCell.m
r5940 r5942 535 535 536 536 //reveal button 537 NSString * revealImageS uffix;537 NSString * revealImageString; 538 538 if (fMouseDownRevealButton) 539 revealImageS uffix = @"On.png";539 revealImageString = @"RevealOn.png"; 540 540 else if (!fTracking && fHoverReveal) 541 revealImageS uffix = @"Hover.png";542 else 543 revealImageS uffix = @"Off.png";544 545 NSImage * revealImage = [NSImage imageNamed: [@"Reveal" stringByAppendingString: revealImageSuffix]];541 revealImageString = @"RevealHover.png"; 542 else 543 revealImageString = @"RevealOff.png"; 544 545 NSImage * revealImage = [NSImage imageNamed: revealImageString]; 546 546 [revealImage setFlipped: YES]; 547 547 [revealImage drawInRect: [self revealButtonRectForBounds: cellFrame] fromRect: NSZeroRect operation: NSCompositeSourceOver … … 549 549 550 550 //action button 551 NSString * actionImageS uffix;551 NSString * actionImageString; 552 552 if (fMouseDownActionButton) 553 actionImageS uffix = @"On.png";553 actionImageString = @"ActionOn.png"; 554 554 else if (!fTracking && fHoverAction) 555 actionImageS uffix = @"Hover.png";556 else 557 actionImageS uffix= nil;558 559 if (actionImageS uffix)560 { 561 NSImage * actionImage = [NSImage imageNamed: [@"Action" stringByAppendingString: actionImageSuffix]];555 actionImageString = @"ActionHover.png"; 556 else 557 actionImageString = nil; 558 559 if (actionImageString) 560 { 561 NSImage * actionImage = [NSImage imageNamed: actionImageString]; 562 562 [actionImage setFlipped: YES]; 563 563 [actionImage drawInRect: [self actionButtonRectForBounds: cellFrame] fromRect: NSZeroRect operation: NSCompositeSourceOver … … 773 773 pieceColor = fBlue4Color; 774 774 775 //it is faster to just set color instead of checkingcolor775 //it's faster to just set color instead of checking previous color 776 776 [fBitmap setColor: pieceColor atX: i y: 0]; 777 777 }
Note: See TracChangeset
for help on using the changeset viewer.