drawing optimization fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 1998-12-01 10:07:04 +00:00
parent b07135ba7a
commit 5b6ec9803a
4 changed files with 8 additions and 2 deletions

View File

@ -364,10 +364,13 @@ void wxDC::ComputeScaleAndOrigin(void)
// the pen has changed
// Using this code, wxDC will ignore the new settings
// so it's complete non-sense, Robert Roebling TODO!!
// It even gives an Assert, Robert Roebling
/*
wxPen* pen = GetPen();
wxPen tempPen;
m_pen = tempPen;
SetPen(pen);
*/
}
}

View File

@ -117,7 +117,7 @@ wxPaintDC::wxPaintDC( wxWindow *window )
SetUpDC();
wxRegion update = window->GetUpdateRegion();
if (update == wxNullRegion) return;
if (update.Empty()) return;
gdk_gc_set_clip_region( m_penGC, update.GetRegion() );
gdk_gc_set_clip_region( m_brushGC, update.GetRegion() );

View File

@ -364,10 +364,13 @@ void wxDC::ComputeScaleAndOrigin(void)
// the pen has changed
// Using this code, wxDC will ignore the new settings
// so it's complete non-sense, Robert Roebling TODO!!
// It even gives an Assert, Robert Roebling
/*
wxPen* pen = GetPen();
wxPen tempPen;
m_pen = tempPen;
SetPen(pen);
*/
}
}

View File

@ -117,7 +117,7 @@ wxPaintDC::wxPaintDC( wxWindow *window )
SetUpDC();
wxRegion update = window->GetUpdateRegion();
if (update == wxNullRegion) return;
if (update.Empty()) return;
gdk_gc_set_clip_region( m_penGC, update.GetRegion() );
gdk_gc_set_clip_region( m_brushGC, update.GetRegion() );