Changed: #1034 Implement CCustomMouse for Linux

This commit is contained in:
kervala 2010-11-02 21:17:32 +01:00
parent bc1fed6c60
commit 37dc4e08ef

View file

@ -269,6 +269,8 @@ void CDriverGL::createCursors()
#elif defined(NL_OS_UNIX)
_DefaultCursor = None;
if (_dpy && _win && _BlankCursor == EmptyCursor)
{
// create blank cursor
char bm_no_data[] = { 0,0,0,0,0,0,0,0 };
Pixmap pixmap_no_data = XCreateBitmapFromData (_dpy, _win, bm_no_data, 8, 8);
@ -277,6 +279,7 @@ void CDriverGL::createCursors()
black.flags = DoRed | DoGreen | DoBlue;
_BlankCursor = XCreatePixmapCursor (_dpy, pixmap_no_data, pixmap_no_data, &black, &black, 0, 0);
XFreePixmap(_dpy, pixmap_no_data);
}
#endif
}