From bc9bc050975ea502b924a4c75fe4b11864011915 Mon Sep 17 00:00:00 2001 From: "joshmoz@gmail.com" Date: Thu, 3 May 2007 12:47:33 -0700 Subject: [PATCH] stop using a call that doesn't exist on 10.3, 99% of the time not calling it doesn't matter but I'll have a real fix soon. r=mento --- widget/src/cocoa/nsNativeThemeCocoa.mm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/widget/src/cocoa/nsNativeThemeCocoa.mm b/widget/src/cocoa/nsNativeThemeCocoa.mm index c4c8669a71b5..0c73c44f0876 100644 --- a/widget/src/cocoa/nsNativeThemeCocoa.mm +++ b/widget/src/cocoa/nsNativeThemeCocoa.mm @@ -182,11 +182,12 @@ nsNativeThemeCocoa::DrawButton(CGContextRef cgContext, ThemeButtonKind inKind, [image setSize:NSMakeSize(offscreenWidth, inBoxRect.size.height)]; // render to the given CGContextRef - [NSGraphicsContext saveGraphicsState]; - [NSGraphicsContext setCurrentContext:[NSGraphicsContext graphicsContextWithGraphicsPort:cgContext flipped:YES]]; + //[NSGraphicsContext saveGraphicsState]; + // we can't use graphicsContextWithGraphicsPort now because that is 10.4 only, this is a band-aid + //[NSGraphicsContext setCurrentContext:[NSGraphicsContext graphicsContextWithGraphicsPort:cgContext flipped:YES]]; [image compositeToPoint:NSMakePoint(inBoxRect.origin.x, inBoxRect.origin.y + inBoxRect.size.height) operation:NSCompositeSourceOver]; - [NSGraphicsContext restoreGraphicsState]; + //[NSGraphicsContext restoreGraphicsState]; [image release]; } else {