From c4f46285ee62168dbd76841fc4c21cb894192b18 Mon Sep 17 00:00:00 2001 From: "John F. Fay" Date: Sat, 29 Sep 2007 13:06:38 +0000 Subject: [PATCH] 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: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@730 7f0cb862-5218-0410-a997-914c9d46530a --- src/freeglut_cursor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/freeglut_cursor.c b/src/freeglut_cursor.c index f383b7a..93b6b20 100644 --- a/src/freeglut_cursor.c +++ b/src/freeglut_cursor.c @@ -183,14 +183,14 @@ void fgSetCursor ( SFG_Window *window, int cursorID ) SetCursor( LoadCursor( NULL, b ) ); \ SetClassLongPtr( window->Window.Handle, \ GCLP_HCURSOR, \ - ( LONG )LoadCursor( NULL, b ) ); \ + ( LONG )( LONG_PTR )LoadCursor( NULL, b ) ); \ break; /* Nuke the cursor AND change it for this window class. */ # define ZAP_CURSOR(a,b) \ case a: \ SetCursor( NULL ); \ - SetClassLong( window->Window.Handle, \ - GCLP_HCURSOR, ( LONG )NULL ); \ + SetClassLongPtr( window->Window.Handle, \ + GCLP_HCURSOR, ( LONG )( LONG_PTR )NULL ); \ break; #endif -- 1.7.10.4