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(); }