Bug 505473 - Fix alpha handling so we composite animated GIFs properly. r=vlad
authorJoe Drew <joe@drew.ca>
Tue, 21 Jul 2009 21:19:59 -0700
changeset 30544 b0f7ccdb99c88d16cc47a490c44b7930fbd3a4d9
parent 30543 8b4c3179b68f58a12408ad1fa205c8b2cb9c6a36
child 30545 4c3f1074ab37276ac75125175cd6627a4005db60
push id8125
push userjdrew@mozilla.com
push dateWed, 22 Jul 2009 04:21:11 +0000
treeherdermozilla-central@4c3f1074ab37 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvlad
bugs505473
milestone1.9.2a1pre
Bug 505473 - Fix alpha handling so we composite animated GIFs properly. r=vlad
modules/libpr0n/src/imgFrame.cpp
--- a/modules/libpr0n/src/imgFrame.cpp
+++ b/modules/libpr0n/src/imgFrame.cpp
@@ -793,17 +793,17 @@ void imgFrame::GetImageData(PRUint8 **aD
 
 PRBool imgFrame::GetIsPaletted() const
 {
   return mPalettedImageData != nsnull;
 }
 
 PRBool imgFrame::GetHasAlpha() const
 {
-  return mFormat != gfxASurface::ImageFormatARGB32;
+  return mFormat == gfxASurface::ImageFormatARGB32;
 }
 
 void imgFrame::GetPaletteData(PRUint32 **aPalette, PRUint32 *length) const
 {
   if (!mPalettedImageData) {
     *aPalette = nsnull;
     *length = 0;
   } else {