summaryrefslogtreecommitdiffstats
path: root/src/glut/glx
diff options
context:
space:
mode:
Diffstat (limited to 'src/glut/glx')
-rw-r--r--src/glut/glx/Makefile2
-rw-r--r--src/glut/glx/glut_cursor.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/glut/glx/Makefile b/src/glut/glx/Makefile
index 0b43aeac30e..2b7180493f7 100644
--- a/src/glut/glx/Makefile
+++ b/src/glut/glx/Makefile
@@ -101,7 +101,7 @@ clean:
-rm -f *.lo
-rm -f *.la
-rm -rf .libs
- -rm -rf depend
+ -rm -rf depend depend.bak
depend: $(SOURCES)
diff --git a/src/glut/glx/glut_cursor.c b/src/glut/glx/glut_cursor.c
index ff5c89f8868..797cb49fb09 100644
--- a/src/glut/glx/glut_cursor.c
+++ b/src/glut/glx/glut_cursor.c
@@ -61,7 +61,7 @@ getFullCrosshairCursor(void)
Atom crosshairAtom, actualType;
int rc, actualFormat;
unsigned long n, left;
- unsigned long *value;
+ unsigned char *value;
if (fullCrosshairCusor == None) {
crosshairAtom = XInternAtom(__glutDisplay,
@@ -70,9 +70,9 @@ getFullCrosshairCursor(void)
value = 0; /* Make compiler happy. */
rc = XGetWindowProperty(__glutDisplay, __glutRoot,
crosshairAtom, 0, 1, False, XA_CURSOR, &actualType,
- &actualFormat, &n, &left, (unsigned char **) &value);
+ &actualFormat, &n, &left, &value);
if (rc == Success && actualFormat == 32 && n >= 1) {
- cursor = value[0];
+ cursor = ((unsigned long *)value)[0];
XFree(value);
return cursor;
}