From 66f3d6964824e859344c9033157aa0211b6ee8ac Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Wed, 9 Oct 2013 10:33:22 -0700 Subject: [PATCH] Changed to use non-deprecated function --- ThirdParty/ImageTextCell/ImageTextCell.m | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ThirdParty/ImageTextCell/ImageTextCell.m b/ThirdParty/ImageTextCell/ImageTextCell.m index 7bd72be03..f7a4eaebc 100644 --- a/ThirdParty/ImageTextCell/ImageTextCell.m +++ b/ThirdParty/ImageTextCell/ImageTextCell.m @@ -64,12 +64,9 @@ imageFrame.origin.x += 3; imageFrame.size = imageSize; - if ([controlView isFlipped]) - imageFrame.origin.y += ceil((cellFrame.size.height + imageFrame.size.height) / 2); - else - imageFrame.origin.y += ceil((cellFrame.size.height - imageFrame.size.height) / 2); + imageFrame.origin.y += ceil((cellFrame.size.height - imageFrame.size.height) / 2); - [image compositeToPoint:imageFrame.origin operation:NSCompositeSourceOver]; + [image drawInRect:imageFrame fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0 respectFlipped:YES hints:nil]; } [super drawWithFrame:cellFrame inView:controlView]; }