mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
de-flip priority images in the inspector
This commit is contained in:
parent
a65f6243eb
commit
7cda4c5b1c
1 changed files with 10 additions and 1 deletions
|
@ -25,6 +25,7 @@
|
|||
#import "FilePriorityCell.h"
|
||||
#import "FileOutlineView.h"
|
||||
#import "FileListNode.h"
|
||||
#import "NSApplicationAdditions.h"
|
||||
#import "Torrent.h"
|
||||
|
||||
@implementation FilePriorityCell
|
||||
|
@ -140,7 +141,15 @@
|
|||
NSRect imageRect = NSMakeRect(cellFrame.origin.x + (cellFrame.size.width - imageSize.width) * 0.5,
|
||||
cellFrame.origin.y + (cellFrame.size.height - imageSize.height) * 0.5,
|
||||
imageSize.width, imageSize.height);
|
||||
[image drawInRect: imageRect fromRect: NSZeroRect operation: NSCompositeSourceOver fraction: 1.0];
|
||||
|
||||
if ([NSApp isOnSnowLeopardOrBetter])
|
||||
[image drawInRect: imageRect fromRect: NSZeroRect operation: NSCompositeSourceOver fraction: 1.0
|
||||
respectFlipped: YES hints: nil];
|
||||
else
|
||||
{
|
||||
[image setFlipped: YES];
|
||||
[image drawInRect: imageRect fromRect: NSZeroRect operation: NSCompositeSourceOver fraction: 1.0];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue