From d28e238e85f6f4541037d0971d0ae7c8db6968cd Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Tue, 24 Jan 2006 19:36:09 +0000 Subject: [PATCH] bug 324260 add OS/2, BeOS and photon to the BGR ifdefs r=tor --- layout/svg/renderer/src/cairo/nsSVGCairoCanvas.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layout/svg/renderer/src/cairo/nsSVGCairoCanvas.cpp b/layout/svg/renderer/src/cairo/nsSVGCairoCanvas.cpp index 954f0c476f9..0aeeded5e37 100644 --- a/layout/svg/renderer/src/cairo/nsSVGCairoCanvas.cpp +++ b/layout/svg/renderer/src/cairo/nsSVGCairoCanvas.cpp @@ -307,13 +307,13 @@ nsSVGCairoCanvas::Init(nsIRenderingContext *ctx, mBuffer = do_CreateInstance("@mozilla.org/gfx/image/frame;2"); if (mPreBlendImage) { -#ifdef XP_WIN +#if defined(XP_WIN) || defined(XP_OS2) || defined(XP_BEOS) || defined(MOZ_WIDGET_PHOTON) mBuffer->Init(0, 0, mWidth, mHeight, gfxIFormats::BGR, 24); #else mBuffer->Init(0, 0, mWidth, mHeight, gfxIFormats::RGB, 24); #endif } else { -#ifdef XP_WIN +#if defined(XP_WIN) || defined(XP_OS2) || defined(XP_BEOS) || defined(MOZ_WIDGET_PHOTON) mBuffer->Init(0, 0, mWidth, mHeight, gfxIFormats::BGR_A8, 24); #else mBuffer->Init(0, 0, mWidth, mHeight, gfxIFormats::RGB_A8, 24); @@ -526,7 +526,7 @@ static nsresult CopyCairoImageToIImage(PRUint8* aData, PRInt32 aWidth, PRInt32 a *outrowrgb++ = 0; #endif -#ifdef XP_WIN +#if defined(XP_WIN) || defined(XP_OS2) || defined(XP_BEOS) || defined(MOZ_WIDGET_PHOTON) // On windows, RGB_A8 is really BGR_A8. // in fact, BGR_A8 is also BGR_A8. if (!aPreBlend) {