]> git.saurik.com Git - wxWidgets.git/blob - src/mgl/dcscreen.cpp
reSWIGged
[wxWidgets.git] / src / mgl / dcscreen.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: dcscreen.cpp
3 // Author: Vaclav Slavik
4 // Id: $Id$
5 // Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
8
9 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
10 #pragma implementation "dcscreen.h"
11 #endif
12
13 // For compilers that support precompilation, includes "wx.h".
14 #include "wx/wxprec.h"
15
16 #ifdef __BORLANDC__
17 #pragma hdrstop
18 #endif
19
20 #include "wx/dcscreen.h"
21 #include "wx/mgl/private.h"
22
23 IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxDC)
24
25 wxScreenDC::wxScreenDC() : wxDC()
26 {
27 SetMGLDC(g_displayDC, FALSE /* no ownership */);
28
29 // VS: we have to hide the mouse, otherwise rendering artifacts may occur
30 MS_obscure();
31 }
32
33 wxScreenDC::~wxScreenDC()
34 {
35 MS_show();
36 }