]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/dcscreen.cpp
Create an NSView (in leiu of a real static bitmap class)
[wxWidgets.git] / src / mgl / dcscreen.cpp
index 6152e58c5419ec5a07cca3a23e783c49a031a9a5..e3f77babb07acdfb8f1548f8f9abe02c34ba032d 100644 (file)
@@ -2,7 +2,7 @@
 // Name:        dcscreen.cpp
 // Author:      Vaclav Slavik
 // Id:          $Id$
-// Copyright:   (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
+// Copyright:   (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
@@ -25,4 +25,12 @@ 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();
+}
+
+wxScreenDC::~wxScreenDC()
+{
+    MS_show();
 }