Bug 169477 r=paper sr=alecf

favicon color palette reversed or too red
This commit is contained in:
cbiesinger%web.de 2002-09-24 21:21:52 +00:00
parent f024b34d2e
commit 06d88fad49
2 changed files with 8 additions and 8 deletions

View File

@ -57,13 +57,6 @@
#include "ImageLogging.h"
#if defined(XP_PC) || defined(XP_BEOS) || defined(MOZ_WIDGET_PHOTON)
#define GFXFORMAT gfxIFormats::BGR
#else
#define USE_RGB
#define GFXFORMAT gfxIFormats::RGB
#endif
PRLogModuleInfo *gBMPLog = PR_NewLogModule("BMPDecoder");
NS_IMPL_ISUPPORTS1(nsBMPDecoder, imgIDecoder)
@ -253,7 +246,7 @@ NS_METHOD nsBMPDecoder::ProcessData(const char* aBuffer, PRUint32 aCount)
if (!mRow) {
return NS_ERROR_OUT_OF_MEMORY;
}
rv = mFrame->Init(0, 0, mBIH.width, mBIH.height, GFXFORMAT);
rv = mFrame->Init(0, 0, mBIH.width, mBIH.height, BMP_GFXFORMAT);
NS_ENSURE_SUCCESS(rv, rv);
rv = mImage->AppendFrame(mFrame);
NS_ENSURE_SUCCESS(rv, rv);

View File

@ -102,6 +102,13 @@ struct bitFields {
#define LITTLE_TO_NATIVE32(x) x
#endif
#if defined(XP_PC) || defined(XP_BEOS) || defined(MOZ_WIDGET_PHOTON)
#define BMP_GFXFORMAT gfxIFormats::BGR
#else
#define USE_RGB
#define BMP_GFXFORMAT gfxIFormats::RGB
#endif
#define BI_RLE8 1
#define BI_RLE4 2
#define BI_BITFIELDS 3