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:
@@ -30,7 +30,7 @@ class WXDLLEXPORT wxScreenDC: public wxDC
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxScreenDC();
|
wxScreenDC();
|
||||||
~wxScreenDC() {}
|
~wxScreenDC();
|
||||||
|
|
||||||
static bool StartDrawingOnTop(wxWindow *WXUNUSED(window)) { return TRUE; }
|
static bool StartDrawingOnTop(wxWindow *WXUNUSED(window)) { return TRUE; }
|
||||||
static bool StartDrawingOnTop(wxRect *WXUNUSED(rect) = NULL) { return TRUE; }
|
static bool StartDrawingOnTop(wxRect *WXUNUSED(rect) = NULL) { return TRUE; }
|
||||||
|
@@ -25,4 +25,12 @@ IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxDC)
|
|||||||
wxScreenDC::wxScreenDC() : wxDC()
|
wxScreenDC::wxScreenDC() : wxDC()
|
||||||
{
|
{
|
||||||
SetMGLDC(g_displayDC, FALSE /* no ownership */);
|
SetMGLDC(g_displayDC, FALSE /* no ownership */);
|
||||||
|
|
||||||
|
// VS: we have to hide the mouse, otherwise rendering artifacts may occur
|
||||||
|
MS_obscure();
|
||||||
|
}
|
||||||
|
|
||||||
|
wxScreenDC::~wxScreenDC()
|
||||||
|
{
|
||||||
|
MS_show();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user