X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_cursor.c;h=93b6b2056c55f1b4595091e74aa30ad34ffd3d17;hb=fc6f0b39d73b3d9f6ee900f23015fac4f692c644;hp=f383b7ac18069f09f29729eddf43be96f39d2c22;hpb=9f34ff2070762bb86a95872da026313f5c4aae27;p=freeglut 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