projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make it compile again with "-Wall -pedantic -Werror", redoing quite a
[freeglut]
/
src
/
freeglut_cursor.c
diff --git
a/src/freeglut_cursor.c
b/src/freeglut_cursor.c
index
20ec0d8
..
d26b581
100644
(file)
--- a/
src/freeglut_cursor.c
+++ b/
src/freeglut_cursor.c
@@
-83,8
+83,8
@@
static int fghGetCursorError( Cursor cursor )
*/
void FGAPIENTRY glutSetCursor( int cursorID )
{
*/
void FGAPIENTRY glutSetCursor( int cursorID )
{
- freeglut_assert_ready; /* XXX WHY do we need the timer active for this? */
- freeglut_assert_window;
+ FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutSetCursor" );
+ FREEGLUT_EXIT_IF_NO_WINDOW ( "glutSetCursor" );
#if TARGET_HOST_UNIX_X11
/*
#if TARGET_HOST_UNIX_X11
/*
@@
-144,7
+144,7
@@
void FGAPIENTRY glutSetCursor( int cursorID )
* need to pick a color for foreground/background---but what
* one we pick doesn't matter for GLUT_CURSOR_NONE.
*/
* need to pick a color for foreground/background---but what
* one we pick doesn't matter for GLUT_CURSOR_NONE.
*/
- static unsigned char no_cursor_bits[ 32 ];
+ static char no_cursor_bits[ 32 ];
XColor black;
no_cursor = XCreatePixmapFromBitmapData( fgDisplay.Display,
fgDisplay.RootWindow,
XColor black;
no_cursor = XCreatePixmapFromBitmapData( fgDisplay.Display,
fgDisplay.RootWindow,
@@
-236,8
+236,8
@@
void FGAPIENTRY glutSetCursor( int cursorID )
*/
void FGAPIENTRY glutWarpPointer( int x, int y )
{
*/
void FGAPIENTRY glutWarpPointer( int x, int y )
{
- freeglut_assert_ready; /* XXX WHY do we need the timer active for this? */
- freeglut_assert_window;
+ FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutWarpPointer" );
+ FREEGLUT_EXIT_IF_NO_WINDOW ( "glutWarpPointer" );
#if TARGET_HOST_UNIX_X11
#if TARGET_HOST_UNIX_X11