Final patch on full screen fix per e-mail from Diederick Niehorster dated 10/4/11 at 10:19 PM
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@932 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
440b6ad83b
commit
57039867b7
@ -336,4 +336,4 @@ int main( int argc, char** argv )
|
|||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** END OF FILE ***/
|
/*** END OF FILE ***/
|
@ -1367,7 +1367,7 @@ void fgOpenWindow( SFG_Window* window, const char* title,
|
|||||||
if( gameMode )
|
if( gameMode )
|
||||||
{
|
{
|
||||||
/* if in gamemode, query the origin of specified by the -display
|
/* if in gamemode, query the origin of specified by the -display
|
||||||
* parameter command line (if any) and offset the upper-left corner
|
* command line parameter (if any) and offset the upper-left corner
|
||||||
* of the window so we create the window on that screen.
|
* of the window so we create the window on that screen.
|
||||||
* The -display argument doesn't do anything if not trying to enter
|
* The -display argument doesn't do anything if not trying to enter
|
||||||
* gamemode.
|
* gamemode.
|
||||||
@ -2000,7 +2000,7 @@ void FGAPIENTRY glutFullScreen( void )
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
#if(WINVER >= 0x0500)
|
#if(WINVER >= 0x0500) /* Windows 2000 or later */
|
||||||
DWORD s;
|
DWORD s;
|
||||||
RECT rect;
|
RECT rect;
|
||||||
HMONITOR hMonitor;
|
HMONITOR hMonitor;
|
||||||
@ -2042,9 +2042,8 @@ void FGAPIENTRY glutFullScreen( void )
|
|||||||
|
|
||||||
rect.left = 0;
|
rect.left = 0;
|
||||||
rect.top = 0;
|
rect.top = 0;
|
||||||
get_display_origin(&rect.left,&rect.top);
|
rect.right = fgDisplay.ScreenWidth;
|
||||||
rect.right = fgDisplay.ScreenWidth+rect.left;
|
rect.bottom = fgDisplay.ScreenHeight;
|
||||||
rect.bottom = fgDisplay.ScreenHeight+rect.top;
|
|
||||||
|
|
||||||
AdjustWindowRect ( &rect, WS_OVERLAPPEDWINDOW | WS_CLIPSIBLINGS |
|
AdjustWindowRect ( &rect, WS_OVERLAPPEDWINDOW | WS_CLIPSIBLINGS |
|
||||||
WS_CLIPCHILDREN, FALSE );
|
WS_CLIPCHILDREN, FALSE );
|
||||||
|
Reference in New Issue
Block a user