From 3f7c4246f4ddec88760ccb4c51a15fc5c11a082f Mon Sep 17 00:00:00 2001 From: "gordon%netscape.com" Date: Tue, 19 Feb 2002 06:17:10 +0000 Subject: [PATCH] Fixing optimized mac bustage. --- gfx/src/mac/nsGfxUtils.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gfx/src/mac/nsGfxUtils.h b/gfx/src/mac/nsGfxUtils.h index 16b4f753c4c..7016e21845b 100644 --- a/gfx/src/mac/nsGfxUtils.h +++ b/gfx/src/mac/nsGfxUtils.h @@ -43,7 +43,7 @@ #include "nsCarbonHelpers.h" #endif // CarbonHelpers_h__ -#if !defined(XP_MACOSX) +#if DEBUG && !defined(XP_MACOSX) #include "macstdlibextras.h" #endif @@ -89,8 +89,13 @@ inline PRBool ValidateDrawingState() #else // all our ports should be onscreen or offscreen color graphics ports // Onscreen ports have portVersion 0xC000, GWorlds have 0xC001. +#if DEBUG if ((((UInt16)curPort->portVersion & 0xC000) != 0xC000) && !IsSIOUXWindow((GrafPtr)curPort)) return false; +#else + if ((((UInt16)curPort->portVersion & 0xC000) != 0xC000)) + return false; +#endif #endif // see if the device is in the device list. If not, it probably means that