X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_state.c;h=0ea47a40de0c29029bd304c3be4e0b51acf692e5;hb=5422ecc3a08d6c8a85b4693d227079c4d7ff0108;hp=f399a8c74a2b2e37eae7766a98488dc03c7ad1f6;hpb=744adafb5f4cd38f4e77d3a2751edfbc90367fea;p=freeglut diff --git a/src/freeglut_state.c b/src/freeglut_state.c index f399a8c..0ea47a4 100644 --- a/src/freeglut_state.c +++ b/src/freeglut_state.c @@ -29,7 +29,7 @@ #include "config.h" #endif -#include "../include/GL/freeglut.h" +#include #include "freeglut_internal.h" /* @@ -507,7 +507,7 @@ int FGAPIENTRY glutDeviceGet( GLenum eWhat ) case GLUT_HAS_MOUSE: /* - * The Windows can be booted without a mouse. + * The Windows can be booted without a mouse. * It would be nice to have this reported. */ return GetSystemMetrics( SM_MOUSEPRESENT ); @@ -542,7 +542,7 @@ int FGAPIENTRY glutDeviceGet( GLenum eWhat ) return 0; case GLUT_DEVICE_IGNORE_KEY_REPEAT: - return fgState.IgnoreKeyRepeat; + return fgStructure.Window ? fgStructure.Window->State.IgnoreKeyRepeat : 0; case GLUT_DEVICE_KEY_REPEAT: /*