fix prev commit
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 21 Apr 2008 11:10:50 +0000 (11:10 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 21 Apr 2008 11:10:50 +0000 (11:10 +0000)
lib/gdi/gpixmap.cpp

index d283ef0509f0ac9741a6c400f9ded5870c8efcde..315c18d130428fe8543788f8d5cacabd6c844e57 100644 (file)
@@ -282,7 +282,7 @@ void gPixmap::blit(const gPixmap &src, ePoint pos, const gRegion &clip, int flag
                        dstptr+=area.left()*surface->bypp+area.top()*surface->stride;
                        for (int y=0; y<area.height(); y++)
                        {
-                               if (flag & blitAlphaTest)
+                               if (flag & (blitAlphaTest|blitAlphaBlend))
                                {
                      // no real alphatest yet
                                        int width=area.width();
@@ -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|blitAlphaBlend))
+                               if (flag & blitAlphaTest)
                                {
                                        int width=area.width();
                                        unsigned long *src=(unsigned long*)srcptr;