X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/112c5086e85454b320cdb45f2e16dc5f34e8b9d8..7ff14117cbfd017d73508f51b27495ee7e9189f3:/src/gtk/dcclient.cpp diff --git a/src/gtk/dcclient.cpp b/src/gtk/dcclient.cpp index 6505cb6786..cbfcc44f33 100644 --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -939,6 +939,7 @@ void wxWindowDC::SetPen( const wxPen &pen ) } } +#if (GTK_MINOR_VERSION > 0) if (req_dash && req_nb_dash) { char *real_req_dash = new char[req_nb_dash]; @@ -955,6 +956,7 @@ void wxWindowDC::SetPen( const wxPen &pen ) gdk_gc_set_dashes( m_penGC, 0, (char*)req_dash, req_nb_dash ); } } +#endif GdkCapStyle capStyle = GDK_CAP_ROUND; switch (m_pen.GetCap()) @@ -1008,7 +1010,7 @@ void wxWindowDC::SetBrush( const wxBrush &brush ) if ((m_brush.GetStyle() == wxSTIPPLE) && (m_brush.GetStipple()->Ok())) { if (m_brush.GetStipple()->GetPixmap()) - gdk_gc_set_stipple( m_brushGC, m_brush.GetStipple()->GetPixmap() ); + gdk_gc_set_tile( m_brushGC, m_brush.GetStipple()->GetPixmap() ); else gdk_gc_set_stipple( m_brushGC, m_brush.GetStipple()->GetBitmap() ); } @@ -1053,9 +1055,12 @@ void wxWindowDC::SetBackground( const wxBrush &brush ) gdk_gc_set_fill( m_bgGC, fillStyle ); - if (m_backgroundBrush.GetStyle() == wxSTIPPLE) + if ((m_backgroundBrush.GetStyle() == wxSTIPPLE) && (m_backgroundBrush.GetStipple()->Ok())) { - gdk_gc_set_stipple( m_bgGC, m_backgroundBrush.GetStipple()->GetPixmap() ); + if (m_backgroundBrush.GetStipple()->GetPixmap()) + gdk_gc_set_tile( m_bgGC, m_backgroundBrush.GetStipple()->GetPixmap() ); + else + gdk_gc_set_stipple( m_bgGC, m_backgroundBrush.GetStipple()->GetBitmap() ); } if (IS_HATCH(m_backgroundBrush.GetStyle()))