From: Václav Slavík Date: Sat, 26 Jan 2002 00:24:06 +0000 (+0000) Subject: hide mouse when using wxScreenDC in wxMGL X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/69830d1f58152f2b6e4d93149d25d11917eb7654 hide mouse when using wxScreenDC in wxMGL git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/mgl/dcscreen.h b/include/wx/mgl/dcscreen.h index a5f0ace17d..c5ae986000 100644 --- a/include/wx/mgl/dcscreen.h +++ b/include/wx/mgl/dcscreen.h @@ -30,7 +30,7 @@ class WXDLLEXPORT wxScreenDC: public wxDC { public: wxScreenDC(); - ~wxScreenDC() {} + ~wxScreenDC(); static bool StartDrawingOnTop(wxWindow *WXUNUSED(window)) { return TRUE; } static bool StartDrawingOnTop(wxRect *WXUNUSED(rect) = NULL) { return TRUE; } diff --git a/src/mgl/dcscreen.cpp b/src/mgl/dcscreen.cpp index 6152e58c54..575d656dba 100644 --- a/src/mgl/dcscreen.cpp +++ b/src/mgl/dcscreen.cpp @@ -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(); }