mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-30 04:40:53 +00:00
Changed: #1034 Implement CCustomMouse for Linux
This commit is contained in:
parent
839148e120
commit
44879f5d3f
1 changed files with 11 additions and 8 deletions
|
@ -269,14 +269,17 @@ void CDriverGL::createCursors()
|
|||
#elif defined(NL_OS_UNIX)
|
||||
_DefaultCursor = None;
|
||||
|
||||
// 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);
|
||||
XColor black;
|
||||
memset(&black, 0, sizeof (XColor));
|
||||
black.flags = DoRed | DoGreen | DoBlue;
|
||||
_BlankCursor = XCreatePixmapCursor (_dpy, pixmap_no_data, pixmap_no_data, &black, &black, 0, 0);
|
||||
XFreePixmap(_dpy, pixmap_no_data);
|
||||
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);
|
||||
XColor black;
|
||||
memset(&black, 0, sizeof (XColor));
|
||||
black.flags = DoRed | DoGreen | DoBlue;
|
||||
_BlankCursor = XCreatePixmapCursor (_dpy, pixmap_no_data, pixmap_no_data, &black, &black, 0, 0);
|
||||
XFreePixmap(_dpy, pixmap_no_data);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue