]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/dcscreen.cpp
make sure gs_captureWindow is always set to NULL in DoReleaseMouse
[wxWidgets.git] / src / mgl / dcscreen.cpp
index db34c4a94513adeddd9bec07215e7ca8f0e95b7e..6152e58c5419ec5a07cca3a23e783c49a031a9a5 100644 (file)
@@ -1,9 +1,8 @@
 /////////////////////////////////////////////////////////////////////////////
 // Name:        dcscreen.cpp
 /////////////////////////////////////////////////////////////////////////////
 // Name:        dcscreen.cpp
-// Purpose:
-// Author:      Robert Roebling
+// Author:      Vaclav Slavik
 // Id:          $Id$
 // Id:          $Id$
-// Copyright:   (c) 1998 Robert Roebling
+// Copyright:   (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #pragma implementation "dcscreen.h"
 #endif
 
 #pragma implementation "dcscreen.h"
 #endif
 
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+    #pragma hdrstop
+#endif
+
 #include "wx/dcscreen.h"
 #include "wx/dcscreen.h"
-#include "wx/window.h"
+#include "wx/mgl/private.h"
 
 
+IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxDC)
 
 
-IMPLEMENT_DYNAMIC_CLASS(wxScreenDC,wxPaintDC)
+wxScreenDC::wxScreenDC() : wxDC()
+{
+    SetMGLDC(g_displayDC, FALSE /* no ownership */);
+}