]> git.saurik.com Git - wxWidgets.git/blobdiff - src/dfb/brush.cpp
implemented wxPopupWindow for wxDFB; added wxNonOwnedWindow as base class for wxTopLe...
[wxWidgets.git] / src / dfb / brush.cpp
index 1302755133c1505c417b90505f736e5246a83bde..475491621ffb338eecf7da9be1586393a7f64b97 100644 (file)
@@ -43,7 +43,7 @@ public:
 
     void SetStyle(int style)
     {
-        if ( style != wxSOLID && style == wxTRANSPARENT )
+        if ( style != wxSOLID && style != wxTRANSPARENT )
         {
             wxFAIL_MSG( _T("only wxSOLID and wxTRANSPARENT styles are supported") );
             style = wxSOLID;
@@ -80,7 +80,7 @@ bool wxBrush::operator==(const wxBrush& brush) const
     return m_refData == brush.m_refData;
 }
 
-bool wxBrush::Ok() const
+bool wxBrush::IsOk() const
 {
     return ((m_refData) && M_BRUSHDATA->m_colour.Ok());
 }