-// ----------------------------------------------------------------------------
-// wxPaintDC
-// ----------------------------------------------------------------------------
-
-IMPLEMENT_DYNAMIC_CLASS(wxPaintDC, wxClientDC)
-
-wxPaintDC::wxPaintDC(wxWindow* win)
- : wxClientDC(win)
-{
-#if USE_PAINT_REGION
- if (!win->GetClipPaintRegion())
- return;
-
- m_paintClippingRegion = win->GetUpdateRegion();
- Region region = (Region) m_paintClippingRegion.GetX11Region();
- if (region)
- {
- m_paintClippingRegion = win->GetUpdateRegion();
- Region region2 = (Region) m_paintClippingRegion.GetX11Region();
- if (region2)
- {
- m_currentClippingRegion.Union( m_paintClippingRegion );
-
- XSetRegion( (Display*) m_display, (GC) m_penGC, region2 );
- XSetRegion( (Display*) m_display, (GC) m_brushGC, region2 );
- XSetRegion( (Display*) m_display, (GC) m_textGC, region2 );
- XSetRegion( (Display*) m_display, (GC) m_bgGC, region2 );
- }
- }
-#endif // USE_PAINT_REGION
-}
-