Bug 641748 - Change imgFrame::mPaletteDepth from signed to unsigned. r=jrmuizel

This commit is contained in:
Joe Drew 2011-07-14 14:47:41 -04:00
Родитель 24b7ccd60a
Коммит 9a358e76cc
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -168,7 +168,7 @@ imgFrame::~imgFrame()
}
nsresult imgFrame::Init(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight,
gfxASurface::gfxImageFormat aFormat, PRInt8 aPaletteDepth /* = 0 */)
gfxASurface::gfxImageFormat aFormat, PRUint8 aPaletteDepth /* = 0 */)
{
// assert for properties that should be verified by decoders, warn for properties related to bad content
if (!AllowedImageSize(aWidth, aHeight))

Просмотреть файл

@ -62,7 +62,7 @@ public:
imgFrame();
~imgFrame();
nsresult Init(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, gfxASurface::gfxImageFormat aFormat, PRInt8 aPaletteDepth = 0);
nsresult Init(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, gfxASurface::gfxImageFormat aFormat, PRUint8 aPaletteDepth = 0);
nsresult Optimize();
void Draw(gfxContext *aContext, gfxPattern::GraphicsFilter aFilter,
@ -188,7 +188,7 @@ private: // data
PRInt32 mDisposalMethod;
gfxASurface::gfxImageFormat mFormat;
PRInt8 mPaletteDepth;
PRUint8 mPaletteDepth;
PRInt8 mBlendMethod;
PRPackedBool mSinglePixel;
PRPackedBool mNeverUseDeviceSurface;