Removing the remaining compiler warnings from the cursor code, thanks to Antonio Mattos of Brazil. The double type-casting is needed because of a bug in the new MSVC; there is a discussion on the web on this subject.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@730 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
0e17c966c4
commit
8b5b378c99
@ -183,14 +183,14 @@ void fgSetCursor ( SFG_Window *window, int cursorID )
|
|||||||
SetCursor( LoadCursor( NULL, b ) ); \
|
SetCursor( LoadCursor( NULL, b ) ); \
|
||||||
SetClassLongPtr( window->Window.Handle, \
|
SetClassLongPtr( window->Window.Handle, \
|
||||||
GCLP_HCURSOR, \
|
GCLP_HCURSOR, \
|
||||||
( LONG )LoadCursor( NULL, b ) ); \
|
( LONG )( LONG_PTR )LoadCursor( NULL, b ) ); \
|
||||||
break;
|
break;
|
||||||
/* Nuke the cursor AND change it for this window class. */
|
/* Nuke the cursor AND change it for this window class. */
|
||||||
# define ZAP_CURSOR(a,b) \
|
# define ZAP_CURSOR(a,b) \
|
||||||
case a: \
|
case a: \
|
||||||
SetCursor( NULL ); \
|
SetCursor( NULL ); \
|
||||||
SetClassLong( window->Window.Handle, \
|
SetClassLongPtr( window->Window.Handle, \
|
||||||
GCLP_HCURSOR, ( LONG )NULL ); \
|
GCLP_HCURSOR, ( LONG )( LONG_PTR )NULL ); \
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user