]> git.saurik.com Git - wxWidgets.git/blobdiff - src/dfb/dc.cpp
process pending wx events before sending idle events
[wxWidgets.git] / src / dfb / dc.cpp
index 49aa202b638f27c2143afb7495215ed0ec05352f..a22b83bbc67f0f690d1a9a16d4e5edb43f1df77f 100644 (file)
@@ -691,7 +691,10 @@ bool wxDC::DoBlitFromSurface(const wxIDirectFBSurfacePtr& src,
     wxIDirectFBSurfacePtr dst(m_surface);
 
     // FIXME: this will have to be different in useMask case, see above
-    if ( !dst->SetBlittingFlags(DSBLIT_NOFX) )
+    DFBSurfaceBlittingFlags blitFlag = (src->GetPixelFormat() == DSPF_ARGB)
+                                       ? DSBLIT_BLEND_ALPHACHANNEL
+                                       : DSBLIT_NOFX;
+    if ( !dst->SetBlittingFlags(blitFlag) )
         return false;
 
     if ( srcRect.w != dstRect.w || srcRect.h != dstRect.h )