Merge remote-tracking branch 'svn/trunk' into git_master
This commit is contained in:
commit
fd18cd47ad
@ -110,16 +110,16 @@ void FGAPIENTRY glutSetOption( GLenum eWhat, int value )
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case GLUT_SKIP_STALE_MOTION_EVENTS:
|
case GLUT_SKIP_STALE_MOTION_EVENTS:
|
||||||
fgState.SkipStaleMotion = value;
|
fgState.SkipStaleMotion = !!value;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GLUT_GEOMETRY_VISUALIZE_NORMALS:
|
case GLUT_GEOMETRY_VISUALIZE_NORMALS:
|
||||||
if( fgStructure.CurrentWindow != NULL )
|
if( fgStructure.CurrentWindow != NULL )
|
||||||
fgStructure.CurrentWindow->State.VisualizeNormals = value;
|
fgStructure.CurrentWindow->State.VisualizeNormals = !!value;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GLUT_STROKE_FONT_DRAW_JOIN_DOTS:
|
case GLUT_STROKE_FONT_DRAW_JOIN_DOTS:
|
||||||
fgState.StrokeFontDrawJoinDots = value;
|
fgState.StrokeFontDrawJoinDots = !!value;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -229,7 +229,6 @@ int FGAPIENTRY glutGet( GLenum eWhat )
|
|||||||
return fgPlatformGlutGet ( eWhat );
|
return fgPlatformGlutGet ( eWhat );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -289,9 +288,6 @@ int FGAPIENTRY glutDeviceGet( GLenum eWhat )
|
|||||||
default:
|
default:
|
||||||
return fgPlatformGlutDeviceGet ( eWhat );
|
return fgPlatformGlutDeviceGet ( eWhat );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* And now -- the failure. */
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
/*
|
/*
|
||||||
* Changes to requested devmode, if it doesn't match current mode
|
* Changes to requested devmode, if it doesn't match current mode
|
||||||
*/
|
*/
|
||||||
GLboolean fghPlatformChangeDisplayMode(GLboolean haveToTest, DEVMODE *devModeRequested)
|
GLboolean fghChangeDisplayMode(GLboolean haveToTest, DEVMODE *devModeRequested)
|
||||||
{
|
{
|
||||||
GLboolean success = GL_FALSE;
|
GLboolean success = GL_FALSE;
|
||||||
DEVMODE devModeCurrent;
|
DEVMODE devModeCurrent;
|
||||||
@ -138,7 +138,7 @@ void fgPlatformRememberState( void )
|
|||||||
void fgPlatformRestoreState( void )
|
void fgPlatformRestoreState( void )
|
||||||
{
|
{
|
||||||
/* Restore the previously remembered desktop display settings */
|
/* Restore the previously remembered desktop display settings */
|
||||||
fghPlatformChangeDisplayMode(GL_FALSE,&fgDisplay.pDisplay.DisplayMode);
|
fghChangeDisplayMode(GL_FALSE,&fgDisplay.pDisplay.DisplayMode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -176,7 +176,7 @@ GLboolean fgPlatformChangeDisplayMode( GLboolean haveToTest )
|
|||||||
devMode.dmFields |= DM_DISPLAYFREQUENCY;
|
devMode.dmFields |= DM_DISPLAYFREQUENCY;
|
||||||
}
|
}
|
||||||
|
|
||||||
return fghPlatformChangeDisplayMode(haveToTest, &devMode);
|
return fghChangeDisplayMode(haveToTest, &devMode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void fgPlatformEnterGameMode( void )
|
void fgPlatformEnterGameMode( void )
|
||||||
|
@ -42,7 +42,7 @@ extern void fgPlatformInitSystemTime();
|
|||||||
void fgPlatformInitialize( const char* displayName )
|
void fgPlatformInitialize( const char* displayName )
|
||||||
{
|
{
|
||||||
WNDCLASS wc;
|
WNDCLASS wc;
|
||||||
ATOM atom;
|
BOOL atom;
|
||||||
|
|
||||||
/* What we need to do is to initialize the fgDisplay global structure here. */
|
/* What we need to do is to initialize the fgDisplay global structure here. */
|
||||||
fgDisplay.pDisplay.Instance = GetModuleHandle( NULL );
|
fgDisplay.pDisplay.Instance = GetModuleHandle( NULL );
|
||||||
|
@ -327,11 +327,9 @@ int fgPlatformGlutDeviceGet ( GLenum eWhat )
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
fgWarning( "glutDeviceGet(): missing enum handle %d", eWhat );
|
fgWarning( "glutDeviceGet(): missing enum handle %d", eWhat );
|
||||||
|
return -1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* And now -- the failure. */
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -233,7 +233,7 @@ static void fghFillPFD( PIXELFORMATDESCRIPTOR *ppfd, HDC hdc, unsigned char laye
|
|||||||
ppfd->cDepthBits = 24;
|
ppfd->cDepthBits = 24;
|
||||||
ppfd->cStencilBits = 8;
|
ppfd->cStencilBits = 8;
|
||||||
|
|
||||||
ppfd->cAuxBuffers = fghNumberOfAuxBuffersRequested();
|
ppfd->cAuxBuffers = (BYTE) fghNumberOfAuxBuffersRequested();
|
||||||
ppfd->iLayerType = layer_type;
|
ppfd->iLayerType = layer_type;
|
||||||
ppfd->bReserved = 0;
|
ppfd->bReserved = 0;
|
||||||
ppfd->dwLayerMask = 0;
|
ppfd->dwLayerMask = 0;
|
||||||
@ -570,7 +570,7 @@ void fgPlatformOpenWindow( SFG_Window* window, const char* title,
|
|||||||
WNDCLASS wc;
|
WNDCLASS wc;
|
||||||
DWORD flags = 0;
|
DWORD flags = 0;
|
||||||
DWORD exFlags = 0;
|
DWORD exFlags = 0;
|
||||||
ATOM atom;
|
BOOL atom;
|
||||||
|
|
||||||
/* Grab the window class we have registered on glutInit(): */
|
/* Grab the window class we have registered on glutInit(): */
|
||||||
atom = GetClassInfo( fgDisplay.pDisplay.Instance, _T("FREEGLUT"), &wc );
|
atom = GetClassInfo( fgDisplay.pDisplay.Instance, _T("FREEGLUT"), &wc );
|
||||||
|
Reference in New Issue
Block a user