X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_state.c;h=9126c4fdda1ae3d46e9d9c7c1a5d1043a18653ce;hb=97e842e50bcf77fb81f83de8d6983e0ddfa0b6d6;hp=a763d27ad9c153ecf6f2b9bc3e1169af5ed47d26;hpb=bb97ecab3add22cf774d3bb8bdb9d1be537cc524;p=freeglut diff --git a/src/freeglut_state.c b/src/freeglut_state.c index a763d27..9126c4f 100644 --- a/src/freeglut_state.c +++ b/src/freeglut_state.c @@ -68,23 +68,9 @@ static int fghGetConfig( int attribute ) static int fghCheckFullScreen(void) { #if TARGET_HOST_POSIX_X11 - - int result; - - result = 0; - if (fgDisplay.StateFullScreen != None) - { - result = fgHintPresent(fgStructure.CurrentWindow->Window.Handle, - fgDisplay.State, - fgDisplay.StateFullScreen); - } - - return result; - + return fgStructure.CurrentWindow->State.IsFullscreen; #else - - return 0; - + return 0; #endif } @@ -334,7 +320,7 @@ int FGAPIENTRY glutGet( GLenum eWhat ) GLXFBConfig * fbconfig; int isPossible; - fbconfig = fgChooseFBConfig(); + fbconfig = fgChooseFBConfig(NULL); if (fbconfig == NULL) {