projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't crash when destroying a not initialized socket (patch 1489095)
[wxWidgets.git]
/
src
/
mgl
/
dcscreen.cpp
diff --git
a/src/mgl/dcscreen.cpp
b/src/mgl/dcscreen.cpp
index 6152e58c5419ec5a07cca3a23e783c49a031a9a5..4edb3f61c7d1e0c356973e1c61574beb94c6963e 100644
(file)
--- a/
src/mgl/dcscreen.cpp
+++ b/
src/mgl/dcscreen.cpp
@@
-1,15
+1,11
@@
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: dcscreen.cpp
+// Name:
src/mgl/
dcscreen.cpp
// Author: Vaclav Slavik
// Id: $Id$
// 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
/////////////////////////////////////////////////////////////////////////////
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-#pragma implementation "dcscreen.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
@@
-18,11
+14,21
@@
#endif
#include "wx/dcscreen.h"
#endif
#include "wx/dcscreen.h"
+
#include "wx/mgl/private.h"
IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxDC)
#include "wx/mgl/private.h"
IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxDC)
-wxScreenDC::wxScreenDC() : wxDC()
+wxScreenDC::wxScreenDC()
+ :wxDC()
{
SetMGLDC(g_displayDC, FALSE /* no ownership */);
{
SetMGLDC(g_displayDC, FALSE /* no ownership */);
+
+ // VS: we have to hide the mouse, otherwise rendering artifacts may occur
+ MS_obscure();
+}
+
+wxScreenDC::~wxScreenDC()
+{
+ MS_show();
}
}