From da6deee1f7e0f2c1f49ecc54e532fb214a676473 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sun, 11 May 2008 20:17:30 +0000 Subject: [PATCH] don't change brush settings in SetBackgroundMode(), it is only supposed to affect text background, bug 1480986 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/dcclient.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/gtk/dcclient.cpp b/src/gtk/dcclient.cpp index c25e7e7ff7..94d6994421 100644 --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -2239,17 +2239,6 @@ void wxWindowDC::SetBackgroundMode( int mode ) wxCHECK_RET( Ok(), wxT("invalid window dc") ); m_backgroundMode = mode; - - if (!m_window) return; - - // CMB 21/7/98: fill style of cross-hatch brushes is affected by - // transparent/solid background mode - - if (m_brush.GetStyle() != wxSOLID && m_brush.GetStyle() != wxTRANSPARENT) - { - gdk_gc_set_fill( m_brushGC, - (m_backgroundMode == wxTRANSPARENT) ? GDK_STIPPLED : GDK_OPAQUE_STIPPLED); - } } void wxWindowDC::SetPalette( const wxPalette& WXUNUSED(palette) )