From 9a358e76cc318a4ea7b87c587f39d7825c65be86 Mon Sep 17 00:00:00 2001 From: Joe Drew Date: Thu, 14 Jul 2011 14:47:41 -0400 Subject: [PATCH] Bug 641748 - Change imgFrame::mPaletteDepth from signed to unsigned. r=jrmuizel --- modules/libpr0n/src/imgFrame.cpp | 2 +- modules/libpr0n/src/imgFrame.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/libpr0n/src/imgFrame.cpp b/modules/libpr0n/src/imgFrame.cpp index 6677a3829844..995eb460528e 100644 --- a/modules/libpr0n/src/imgFrame.cpp +++ b/modules/libpr0n/src/imgFrame.cpp @@ -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)) diff --git a/modules/libpr0n/src/imgFrame.h b/modules/libpr0n/src/imgFrame.h index fb934e2055c7..799c84210f39 100644 --- a/modules/libpr0n/src/imgFrame.h +++ b/modules/libpr0n/src/imgFrame.h @@ -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;