]> git.saurik.com Git - wxWidgets.git/commitdiff
(hacky) fix for bg colour handling in wxUniv's win32 theme
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 27 Jan 2002 00:45:24 +0000 (00:45 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 27 Jan 2002 00:45:24 +0000 (00:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/univ/themes/win32.cpp

index 25b682f50c25f1ebea5c83cd69638ccf8f149fd6..ead2d25dddda1c27e54b56202a182171bd6a538a 100644 (file)
@@ -1261,7 +1261,7 @@ wxColour wxWin32ColourScheme::GetBackground(wxWindow *win) const
 
         // the colour set by the user should be used for the normal state
         // and for the states for which we don't have any specific colours
-        if ( !col.Ok() || (flags != 0) )
+        if ( !col.Ok() || (flags & wxCONTROL_PRESSED) != 0 )
         {
             if ( wxDynamicCast(win, wxScrollBar) )
                 col = Get(flags & wxCONTROL_PRESSED ? SCROLLBAR_PRESSED