]> git.saurik.com Git - wxWidgets.git/commitdiff
added stipple opaque mask detection
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 1 Jan 2002 09:56:37 +0000 (09:56 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 1 Jan 2002 09:56:37 +0000 (09:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/brush.cpp
src/mac/carbon/brush.cpp

index 36703d2cc70343537d8755f084eef1aece56a8e7..5c872567630ed9a7c354afe94ca99a302ea0ee61 100644 (file)
@@ -65,8 +65,13 @@ wxBrush::wxBrush(const wxBitmap& stipple)
 {
     m_refData = new wxBrushRefData;
 
-    M_BRUSHDATA->m_style = wxSTIPPLE;
+    M_BRUSHDATA->m_colour = *wxBLACK;
     M_BRUSHDATA->m_stipple = stipple;
+    
+    if (M_BRUSHDATA->m_stipple.GetMask())
+        M_BRUSHDATA->m_style = wxSTIPPLE_MASK_OPAQUE;
+    else
+        M_BRUSHDATA->m_style = wxSTIPPLE;
 
     RealizeResource();
 }
index 36703d2cc70343537d8755f084eef1aece56a8e7..5c872567630ed9a7c354afe94ca99a302ea0ee61 100644 (file)
@@ -65,8 +65,13 @@ wxBrush::wxBrush(const wxBitmap& stipple)
 {
     m_refData = new wxBrushRefData;
 
-    M_BRUSHDATA->m_style = wxSTIPPLE;
+    M_BRUSHDATA->m_colour = *wxBLACK;
     M_BRUSHDATA->m_stipple = stipple;
+    
+    if (M_BRUSHDATA->m_stipple.GetMask())
+        M_BRUSHDATA->m_style = wxSTIPPLE_MASK_OPAQUE;
+    else
+        M_BRUSHDATA->m_style = wxSTIPPLE;
 
     RealizeResource();
 }