]> git.saurik.com Git - wxWidgets.git/commitdiff
correct bitmap construction (including mask) from image
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 26 May 2001 07:52:12 +0000 (07:52 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 26 May 2001 07:52:12 +0000 (07:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/bitmap.cpp
src/mac/carbon/bitmap.cpp
src/mac/carbon/stattext.cpp
src/mac/stattext.cpp

index d049af15efb8cca8bf3c16218ba695cb5ee5bcc4..9e47fe6728743bb64979844460917be6bcc1d4ca 100644 (file)
@@ -592,7 +592,7 @@ wxBitmap::wxBitmap(const wxImage& image, int depth)
 
     // Create mask
     if ( image.HasMask() ) {
 
     // Create mask
     if ( image.HasMask() ) {
-//        SetMask(new wxMask( maskBitmap ));
+        SetMask(new wxMask( maskBitmap ));
     }
     
     UnlockPixels( GetGWorldPixMap(GetHBITMAP()) );
     }
     
     UnlockPixels( GetGWorldPixMap(GetHBITMAP()) );
index d049af15efb8cca8bf3c16218ba695cb5ee5bcc4..9e47fe6728743bb64979844460917be6bcc1d4ca 100644 (file)
@@ -592,7 +592,7 @@ wxBitmap::wxBitmap(const wxImage& image, int depth)
 
     // Create mask
     if ( image.HasMask() ) {
 
     // Create mask
     if ( image.HasMask() ) {
-//        SetMask(new wxMask( maskBitmap ));
+        SetMask(new wxMask( maskBitmap ));
     }
     
     UnlockPixels( GetGWorldPixMap(GetHBITMAP()) );
     }
     
     UnlockPixels( GetGWorldPixMap(GetHBITMAP()) );
index 3ad2b159b51276a67c16fd2550f33333906b105b..26f16be64248b34d6bdc7434da57249b9c8a3824 100644 (file)
@@ -84,8 +84,10 @@ void wxStaticText::OnDraw( wxDC &dc )
                                        if ( ((wxControl*)parent)->GetMacControl() ) {
                                                Rect rect = { -32767 , -32767 , 32767 , 32767 } ;
                                                if ( DrawThemeTabPane != (void*)kUnresolvedCFragSymbolAddress )
                                        if ( ((wxControl*)parent)->GetMacControl() ) {
                                                Rect rect = { -32767 , -32767 , 32767 , 32767 } ;
                                                if ( DrawThemeTabPane != (void*)kUnresolvedCFragSymbolAddress )
+                                               {
                                                  DrawThemeTabPane ( &rect, kThemeStateActive);
                                                  DrawThemeTabPane ( &rect, kThemeStateActive);
-                                               doClear = false ;
+                                                 doClear = false ;
+                                               }
                                        }
                                        break ;
                                }
                                        }
                                        break ;
                                }
index 3ad2b159b51276a67c16fd2550f33333906b105b..26f16be64248b34d6bdc7434da57249b9c8a3824 100644 (file)
@@ -84,8 +84,10 @@ void wxStaticText::OnDraw( wxDC &dc )
                                        if ( ((wxControl*)parent)->GetMacControl() ) {
                                                Rect rect = { -32767 , -32767 , 32767 , 32767 } ;
                                                if ( DrawThemeTabPane != (void*)kUnresolvedCFragSymbolAddress )
                                        if ( ((wxControl*)parent)->GetMacControl() ) {
                                                Rect rect = { -32767 , -32767 , 32767 , 32767 } ;
                                                if ( DrawThemeTabPane != (void*)kUnresolvedCFragSymbolAddress )
+                                               {
                                                  DrawThemeTabPane ( &rect, kThemeStateActive);
                                                  DrawThemeTabPane ( &rect, kThemeStateActive);
-                                               doClear = false ;
+                                                 doClear = false ;
+                                               }
                                        }
                                        break ;
                                }
                                        }
                                        break ;
                                }