hide mouse when using wxScreenDC in wxMGL

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2002-01-26 00:24:06 +00:00
parent f16ba4e6fa
commit 69830d1f58
2 changed files with 9 additions and 1 deletions

View File

@@ -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; }

View File

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