From: <fa...@us...> - 2011-09-05 03:35:41
|
Revision: 932 http://freeglut.svn.sourceforge.net/freeglut/?rev=932&view=rev Author: fayjf Date: 2011-09-05 03:35:35 +0000 (Mon, 05 Sep 2011) Log Message: ----------- Final patch on full screen fix per e-mail from Diederick Niehorster dated 10/4/11 at 10:19 PM Modified Paths: -------------- trunk/freeglut/freeglut/progs/demos/One/one.c trunk/freeglut/freeglut/src/freeglut_window.c Modified: trunk/freeglut/freeglut/progs/demos/One/one.c =================================================================== --- trunk/freeglut/freeglut/progs/demos/One/one.c 2011-09-04 20:30:48 UTC (rev 931) +++ trunk/freeglut/freeglut/progs/demos/One/one.c 2011-09-05 03:35:35 UTC (rev 932) @@ -336,4 +336,4 @@ return EXIT_SUCCESS; } -/*** END OF FILE ***/ +/*** END OF FILE ***/ \ No newline at end of file Modified: trunk/freeglut/freeglut/src/freeglut_window.c =================================================================== --- trunk/freeglut/freeglut/src/freeglut_window.c 2011-09-04 20:30:48 UTC (rev 931) +++ trunk/freeglut/freeglut/src/freeglut_window.c 2011-09-05 03:35:35 UTC (rev 932) @@ -1367,7 +1367,7 @@ if( gameMode ) { /* 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. * The -display argument doesn't do anything if not trying to enter * gamemode. @@ -2000,7 +2000,7 @@ } { -#if(WINVER >= 0x0500) +#if(WINVER >= 0x0500) /* Windows 2000 or later */ DWORD s; RECT rect; HMONITOR hMonitor; @@ -2042,9 +2042,8 @@ rect.left = 0; rect.top = 0; - get_display_origin(&rect.left,&rect.top); - rect.right = fgDisplay.ScreenWidth+rect.left; - rect.bottom = fgDisplay.ScreenHeight+rect.top; + rect.right = fgDisplay.ScreenWidth; + rect.bottom = fgDisplay.ScreenHeight; AdjustWindowRect ( &rect, WS_OVERLAPPEDWINDOW | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, FALSE ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |