X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a4bbc9f720cbd99d7092e8944e671a6291068b13..e269a9be19a8c454fee444500447db925992f86b:/src/mgl/dcscreen.cpp 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(); }