remove yet another 10.6 depracated function
This commit is contained in:
parent
ae9e59c8af
commit
51711d018f
|
@ -137,8 +137,10 @@
|
|||
}
|
||||
|
||||
NSSize imageSize = [image size];
|
||||
[image compositeToPoint: NSMakePoint(cellFrame.origin.x + (cellFrame.size.width - imageSize.width) * 0.5f,
|
||||
cellFrame.origin.y + (cellFrame.size.height + imageSize.height) * 0.5f) operation: NSCompositeSourceOver];
|
||||
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];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue