]> git.saurik.com Git - wxWidgets.git/commitdiff
Draw tool transparently if we have a mask
authorJulian Smart <julian@anthemion.co.uk>
Tue, 17 Oct 2006 16:57:03 +0000 (16:57 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 17 Oct 2006 16:57:03 +0000 (16:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/univ/themes/win32.cpp

index 1a08bde723740ef9c65256e0ca3d862d81e2d0df..3f5416cbc8c4f3a7e327e4e8b94786bcdad9ab5f 100644 (file)
@@ -1720,7 +1720,7 @@ void wxWin32Renderer::DrawToolBarButton(wxDC& dc,
         {
             int xpoint = (rect.GetLeft() + rect.GetRight() + 1 - bitmap.GetWidth()) / 2;
             int ypoint = (rect.GetTop() + rect.GetBottom() + 1 - bitmap.GetHeight()) / 2;
         {
             int xpoint = (rect.GetLeft() + rect.GetRight() + 1 - bitmap.GetWidth()) / 2;
             int ypoint = (rect.GetTop() + rect.GetBottom() + 1 - bitmap.GetHeight()) / 2;
-            dc.DrawBitmap(bitmap, xpoint, ypoint);
+            dc.DrawBitmap(bitmap, xpoint, ypoint, bitmap.GetMask() != NULL);
         }
     }
     else if (style == wxTOOL_STYLE_SEPARATOR)
         }
     }
     else if (style == wxTOOL_STYLE_SEPARATOR)