]> git.saurik.com Git - wxWidgets.git/blob - src/mgl/dcscreen.cpp
Silence some warnings
[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 // For compilers that support precompilation, includes "wx.h".
10 #include "wx/wxprec.h"
11
12 #ifdef __BORLANDC__
13 #pragma hdrstop
14 #endif
15
16 #include "wx/dcscreen.h"
17 #include "wx/mgl/private.h"
18
19 IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxDC)
20
21 wxScreenDC::wxScreenDC() : wxDC()
22 {
23 SetMGLDC(g_displayDC, FALSE /* no ownership */);
24
25 // VS: we have to hide the mouse, otherwise rendering artifacts may occur
26 MS_obscure();
27 }
28
29 wxScreenDC::~wxScreenDC()
30 {
31 MS_show();
32 }