X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b0e0d66151c930ea402f96925d8d4dc9bb514c09..d9ea011f4d7f66c9728593c5ee10ce2c34964545:/src/gtk1/dc.cpp?ds=sidebyside diff --git a/src/gtk1/dc.cpp b/src/gtk1/dc.cpp index 5148728228..d98edaf9ec 100644 --- a/src/gtk1/dc.cpp +++ b/src/gtk1/dc.cpp @@ -48,7 +48,7 @@ wxDC::wxDC() m_pen = *wxBLACK_PEN; m_font = *wxNORMAL_FONT; - m_brush = *wxTRANSPARENT_BRUSH; + m_brush = *wxWHITE_BRUSH; } void wxDC::DoSetClippingRegion( long x, long y, long width, long height ) @@ -97,25 +97,8 @@ wxSize wxDC::GetPPI() const void wxDC::ComputeScaleAndOrigin() { - // CMB: copy scale to see if it changes - double origScaleX = m_scaleX; - double origScaleY = m_scaleY; - m_scaleX = m_logicalScaleX * m_userScaleX; m_scaleY = m_logicalScaleY * m_userScaleY; - - // CMB: if scale has changed call SetPen to recalulate the line width - if (m_scaleX != origScaleX || m_scaleY != origScaleY) - { - // this is a bit artificial, but we need to force wxDC to think - // the pen has changed - // It gives an Assert, Robert Roebling -/* - wxPen pen = m_pen; - m_pen = wxNullPen; - SetPen( pen ); -*/ - } } void wxDC::SetMapMode( int mode ) @@ -139,6 +122,8 @@ void wxDC::SetMapMode( int mode ) SetLogicalScale( 1.0, 1.0 ); break; } + m_mappingMode = mode; + /* we don't do this mega optimisation if (mode != wxMM_TEXT) {