This repository has been archived on 2024-06-25 . You can view files and clone it, but cannot push or open issues or pull requests.
spanne
ac2e30aecd
Reworked the X11 part of glutSetCursor, fixing bug #764187 (Variable mouse
pointers don't work) on the way: * Use slightly more compatible cursor shapes for GLUT_CURSOR_RIGHT_ARROW and GLUT_CURSOR_LEFT_ARROW. * Refactored and fixed the erroneous code for GLUT_CURSOR_NONE. * Removed the incorrect use of XFreeCursor and use a cache of cursors instead. Cursors are never freed now, we could do this e.g. via reference countig if this is really needed. * Fixed error handling. * Unknown cursor types are an error now. * Now the window state always corresponds to the wanted cursorID, even in the case of GLUT_CURSOR_FULL_CROSSHAIR. NOTE: I am not sure where the cursor cache should really reside, currently it is simply a file-local variable. git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@560 7f0cb862-5218-0410-a997-914c9d46530a
Languages
C
97.2%
CMake
2%
C++
0.8%