mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 169477 r=paper sr=alecf
favicon color palette reversed or too red
This commit is contained in:
parent
f024b34d2e
commit
06d88fad49
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user