X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fx11%2Ffreeglut_state_x11.c;h=3523477a688a9a0c8c92815dd7907ff8d2d3c1d8;hb=1b5ee849ba61b667aeba474a7e03406196478bee;hp=40267e4290d8f9faae2c674ea4474a61516b1f47;hpb=76169d74298feb3c4976af3f0f10376f56aec38d;p=freeglut diff --git a/src/x11/freeglut_state_x11.c b/src/x11/freeglut_state_x11.c index 40267e4..3523477 100644 --- a/src/x11/freeglut_state_x11.c +++ b/src/x11/freeglut_state_x11.c @@ -26,7 +26,7 @@ */ #include -#include "../Common/freeglut_internal.h" +#include "../fg_internal.h" /* * TODO BEFORE THE STABLE RELEASE: @@ -255,49 +255,6 @@ int fgPlatformGlutDeviceGet ( GLenum eWhat ) return -1; } -int fgPlatformGlutLayerGet( GLenum eWhat ) -{ - /* - * This is easy as layers are not implemented ;-) - * - * XXX Can we merge the UNIX/X11 and WIN32 sections? Or - * XXX is overlay support planned? - */ - switch( eWhat ) - { - case GLUT_OVERLAY_POSSIBLE: - return 0; - - case GLUT_LAYER_IN_USE: - return GLUT_NORMAL; - - case GLUT_HAS_OVERLAY: - return 0; - - case GLUT_TRANSPARENT_INDEX: - /* - * Return just anything, which is always defined as zero - * - * XXX HUH? - */ - return 0; - - case GLUT_NORMAL_DAMAGED: - /* XXX Actually I do not know. Maybe. */ - return 0; - - case GLUT_OVERLAY_DAMAGED: - return -1; - - default: - fgWarning( "glutLayerGet(): missing enum handle %d", eWhat ); - break; - } - - /* And fail. That's good. Programs do love failing. */ - return -1; -} - int *fgPlatformGlutGetModeValues(GLenum eWhat, int *size) {