Flicker war won.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1998-11-26 16:11:46 +00:00
parent e3ca08dd12
commit 76ed8f8d9c
14 changed files with 280 additions and 122 deletions

View File

@@ -115,6 +115,14 @@ wxPaintDC::wxPaintDC( wxWindow *window )
m_isMemDC = FALSE;
SetUpDC();
wxRegion update = window->GetUpdateRegion();
if (update == wxNullRegion) return;
gdk_gc_set_clip_region( m_penGC, update.GetRegion() );
gdk_gc_set_clip_region( m_brushGC, update.GetRegion() );
gdk_gc_set_clip_region( m_textGC, update.GetRegion() );
gdk_gc_set_clip_region( m_bgGC, update.GetRegion() );
}
wxPaintDC::~wxPaintDC(void)