added alpha channel support to wxDFB's wxBitmap
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user