From 170a5069a5cbc47ec9c95e14f93970a39acd84a0 Mon Sep 17 00:00:00 2001 From: "joshmoz%gmail.com" Date: Fri, 15 Jun 2007 01:54:44 +0000 Subject: [PATCH] fix typo, bug 384511. --- widget/src/cocoa/nsNativeThemeCocoa.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widget/src/cocoa/nsNativeThemeCocoa.mm b/widget/src/cocoa/nsNativeThemeCocoa.mm index 73693088d43..a33058488da 100644 --- a/widget/src/cocoa/nsNativeThemeCocoa.mm +++ b/widget/src/cocoa/nsNativeThemeCocoa.mm @@ -184,14 +184,14 @@ nsNativeThemeCocoa::DrawButton(CGContextRef cgContext, ThemeButtonKind inKind, [image setSize:NSMakeSize(offscreenWidth, inBoxRect.size.height)]; // render to the given CGContextRef -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAX_OS_X_VERSION_10_4 +#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4 // graphicsContextWithGraphicsPort is only available on 10.4+ [NSGraphicsContext saveGraphicsState]; [NSGraphicsContext setCurrentContext:[NSGraphicsContext graphicsContextWithGraphicsPort:cgContext flipped:YES]]; #endif [image compositeToPoint:NSMakePoint(inBoxRect.origin.x, inBoxRect.origin.y + inBoxRect.size.height) operation:NSCompositeSourceOver]; -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAX_OS_X_VERSION_10_4 +#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4 [NSGraphicsContext restoreGraphicsState]; #endif [image release];