handle alphatest="blend" like alphatest="on" when only 8bpp framebuffer is
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 21 Apr 2008 11:09:12 +0000 (11:09 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 21 Apr 2008 11:09:12 +0000 (11:09 +0000)
available

lib/gdi/gpixmap.cpp

index e2960ad..d283ef0 100644 (file)
@@ -312,7 +312,7 @@ void gPixmap::blit(const gPixmap &src, ePoint pos, const gRegion &clip, int flag
                        dstptr+=area.left()+area.top()*surface->stride/4;
                        for (int y=0; y<area.height(); y++)
                        {
-                               if (flag & blitAlphaTest)
+                               if (flag & (blitAlphaTest|blitAlphaBlend))
                                {
                                        int width=area.width();
                                        unsigned long *src=(unsigned long*)srcptr;