// Purpose:
// Author: Vaclav Slavik
// RCS-ID: $Id$
-// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
+// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "dcclient.h"
#endif
{
m_inPaintHandler = FALSE;
- // VS: we have to update here so that screen's content is up-to-date
- // and blitting from wxWindowDC works as expected
- win->Update();
-
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);
}