Fixed: #1062 Fullscreen with game resolution < desktop resolution

This commit is contained in:
rti 2010-08-13 16:05:01 +02:00
parent ed8a11717d
commit ba4eca5cec

View file

@ -500,6 +500,11 @@ void setWindowSize(nlWindow wnd, uint32 width, uint32 height)
// for fullscreen mode, adjust the back buffer size to the desired resolution // for fullscreen mode, adjust the back buffer size to the desired resolution
if([superview isInFullScreenMode]) if([superview isInFullScreenMode])
{ {
// disable and re-enable fullscreen
// fixes #1062 (http://dev.ryzom.com/issues/1062)
setWindowStyle(wnd, false);
setWindowStyle(wnd, true);
// set the back buffer manually to match the desired rendering resolution // set the back buffer manually to match the desired rendering resolution
GLint dim[2] = { width, height }; GLint dim[2] = { width, height };
CGLError error = CGLSetParameter( CGLError error = CGLSetParameter(