]> git.saurik.com Git - wxWidgets.git/commitdiff
don't change brush settings in SetBackgroundMode(), it is only supposed to affect...
authorPaul Cornett <paulcor@bullseye.com>
Sun, 11 May 2008 20:17:30 +0000 (20:17 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Sun, 11 May 2008 20:17:30 +0000 (20:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/dcclient.cpp

index 5589029861b47d4044ca88e4abd6ccef02c9f517..10abb80eb39f398796cce2e1a3c6ed1a4c31ad64 100644 (file)
@@ -2069,17 +2069,6 @@ void wxWindowDCImpl::SetBackgroundMode( int mode )
     wxCHECK_RET( IsOk(), wxT("invalid window dc") );
 
     m_backgroundMode = mode;
-
-    if (!m_gdkwindow) return;
-
-    // CMB 21/7/98: fill style of cross-hatch brushes is affected by
-    // transparent/solid background mode
-
-    if (m_brush.GetStyle() != wxBRUSHSTYLE_SOLID && m_brush.GetStyle() != wxBRUSHSTYLE_TRANSPARENT)
-    {
-        gdk_gc_set_fill( m_brushGC,
-          (m_backgroundMode == wxBRUSHSTYLE_TRANSPARENT) ? GDK_STIPPLED : GDK_OPAQUE_STIPPLED);
-    }
 }
 
 void wxWindowDCImpl::SetPalette( const wxPalette& WXUNUSED(palette) )