(by nich:) fix empty cursor on GTK

Originally committed to SVN as r246.
This commit is contained in:
David Lamparter 2006-03-26 03:05:43 +00:00
parent ba5af80245
commit 68cf63296f
1 changed files with 6 additions and 0 deletions

View File

@ -111,7 +111,13 @@ VideoDisplay::VideoDisplay(wxWindow* parent, wxWindowID id, const wxPoint& pos,
wxImage::AddHandler(png);
// Set cursor
// Bleeeh! Hate this 'solution':
#if __WXGTK__
static char cursor_image[] = {0};
wxCursor cursor(cursor_image, 8, 1, -1, -1, cursor_image);
#else
wxCursor cursor(wxCURSOR_BLANK);
#endif // __WXGTK__
SetCursor(cursor);
}