/////////////////////////////////////////////////////////////////////////////
-// Name: dcclient.cpp
+// Name: src/mgl/dcclient.cpp
// Purpose:
// Author: Vaclav Slavik
// RCS-ID: $Id$
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-#pragma implementation "dcclient.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#pragma hdrstop
#endif
+#include "wx/dcclient.h"
+
#ifndef WX_PRECOMP
- #include "wx/dcclient.h"
#include "wx/window.h"
#endif
else
{
m_inPaintHandler = FALSE;
-
+
dc = new MGLDevCtx(MGL_wmBeginPaint(win->GetHandle()));
MGLRegion clip;
{
wxRect r = m_wnd->GetClientRect();
m_globalClippingRegion.Intersect(r);
+ SetClippingRegion(m_globalClippingRegion);
SetDeviceOrigin(r.x, r.y);
}