X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fmswin%2Ffreeglut_state_mswin.c;h=3928579ef2bc45c45431306352209c7008e0621d;hb=fd07952449ad7b1fc6cfed569d23677f2b816e40;hp=8a67c4ba8e81398095b12c0bfed170fa03333616;hpb=3eed8855ebe5e559e37503f99a76b009def7a3f7;p=freeglut diff --git a/src/mswin/freeglut_state_mswin.c b/src/mswin/freeglut_state_mswin.c index 8a67c4b..3928579 100644 --- a/src/mswin/freeglut_state_mswin.c +++ b/src/mswin/freeglut_state_mswin.c @@ -1,7 +1,7 @@ /* * freeglut_state_mswin.c * - * The Windows-specific mouse cursor related stuff. + * The Windows-specific state query methods. * * Copyright (c) 2012 Stephen J. Baker. All Rights Reserved. * Written by John F. Fay, @@ -26,7 +26,7 @@ */ #include -#include "freeglut_internal_mswin.h" +#include "../Common/freeglut_internal.h" extern GLboolean fgSetupPixelFormat( SFG_Window* window, GLboolean checkOnly, @@ -229,7 +229,7 @@ int fgPlatformGlutGet ( GLenum eWhat ) case GLUT_WINDOW_FORMAT_ID: #if !defined(_WIN32_WCE) if( fgStructure.CurrentWindow != NULL ) - return GetPixelFormat( fgStructure.CurrentWindow->Window.Device ); + return GetPixelFormat( fgStructure.CurrentWindow->Window.pContext.Device ); #endif /* defined(_WIN32_WCE) */ return 0; @@ -335,4 +335,9 @@ int fgPlatformGlutLayerGet( GLenum eWhat ) } - +/* MSwin does not currently have any Mode values? */ +int *fgPlatformGlutGetModeValues(GLenum eWhat, int *size) +{ + *size = 0; + return NULL; +} \ No newline at end of file