From 69830d1f58152f2b6e4d93149d25d11917eb7654 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 26 Jan 2002 00:24:06 +0000 Subject: [PATCH] hide mouse when using wxScreenDC in wxMGL git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/mgl/dcscreen.h | 2 +- src/mgl/dcscreen.cpp | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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(); } -- 2.50.0