X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a4bbc9f720cbd99d7092e8944e671a6291068b13..578dc95029e761a59911b7c1bc09f59384d64ddf:/src/mgl/dcscreen.cpp diff --git a/src/mgl/dcscreen.cpp b/src/mgl/dcscreen.cpp index 6152e58c54..e3f77babb0 100644 --- a/src/mgl/dcscreen.cpp +++ b/src/mgl/dcscreen.cpp @@ -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(); }