remove yet another 10.6 depracated function

This commit is contained in:
Mitchell Livingston 2009-08-29 15:49:30 +00:00
parent ae9e59c8af
commit 51711d018f
1 changed files with 4 additions and 2 deletions

View File

@ -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];
}
}