]> git.saurik.com Git - wxWidgets.git/blob - src/mgl/dcscreen.cpp
Fix AdjustForOverflow to use item->CalcMin, not item->GetSize
[wxWidgets.git] / src / mgl / dcscreen.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/mgl/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
18 #include "wx/mgl/private.h"
19
20 IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxDC)
21
22 wxScreenDC::wxScreenDC()
23 :wxDC()
24 {
25 SetMGLDC(g_displayDC, FALSE /* no ownership */);
26
27 // VS: we have to hide the mouse, otherwise rendering artifacts may occur
28 MS_obscure();
29 }
30
31 wxScreenDC::~wxScreenDC()
32 {
33 MS_show();
34 }