]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/dcscreen.cpp
fixing osx_cocoa
[wxWidgets.git] / src / mgl / dcscreen.cpp
index db34c4a94513adeddd9bec07215e7ca8f0e95b7e..4edb3f61c7d1e0c356973e1c61574beb94c6963e 100644 (file)
@@ -1,18 +1,34 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        dcscreen.cpp
-// Purpose:
-// Author:      Robert Roebling
+// Name:        src/mgl/dcscreen.cpp
+// Author:      Vaclav Slavik
 // Id:          $Id$
-// Copyright:   (c) 1998 Robert Roebling
+// Copyright:   (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
-#pragma implementation "dcscreen.h"
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+    #pragma hdrstop
 #endif
 
 #include "wx/dcscreen.h"
-#include "wx/window.h"
 
+#include "wx/mgl/private.h"
+
+IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxDC)
+
+wxScreenDC::wxScreenDC()
+           :wxDC()
+{
+    SetMGLDC(g_displayDC, FALSE /* no ownership */);
+
+    // VS: we have to hide the mouse, otherwise rendering artifacts may occur
+    MS_obscure();
+}
 
-IMPLEMENT_DYNAMIC_CLASS(wxScreenDC,wxPaintDC)
+wxScreenDC::~wxScreenDC()
+{
+    MS_show();
+}