git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20571
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bf.SourceConstantAlpha = 0xff;
bf.AlphaFormat = AC_SRC_ALPHA;
bf.SourceConstantAlpha = 0xff;
bf.AlphaFormat = AC_SRC_ALPHA;
- if ( !pfnAlphaBlend(GetHdc(), x, y, width, height,
- hdcMem, 0, 0, width, height,
- bf) )
+ if ( pfnAlphaBlend(GetHdc(), x, y, width, height,
+ hdcMem, 0, 0, width, height,
+ bf) )
- wxLogLastError(_T("AlphaBlend"));
+ // skip wxAlphaBlend() call below
+ return;
+
+ wxLogLastError(_T("AlphaBlend"));
- else // use our own (probably much slower) implementation
- {
+
+ // use our own (probably much slower) implementation
- wxAlphaBlend(*this, x, y, width, height, bmp);
-#else
- wxLogLastError(_T("AlphaBlend not available with this compiler setup"));
-#endif //#ifdef wxHAVE_RAW_BITMAP
- }
+ wxAlphaBlend(*this, x, y, width, height, bmp);
+#endif // wxHAVE_RAW_BITMAP