X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a4bbc9f720cbd99d7092e8944e671a6291068b13..dece3bfd8265ac467b1013e1a3951b042425a6c7:/src/mgl/dcscreen.cpp

diff --git a/src/mgl/dcscreen.cpp b/src/mgl/dcscreen.cpp
index 6152e58c54..148ca94a29 100644
--- a/src/mgl/dcscreen.cpp
+++ b/src/mgl/dcscreen.cpp
@@ -2,11 +2,11 @@
 // 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
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "dcscreen.h"
 #endif
 
@@ -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();
 }