From 18e1867e2b7b641c100494551a6eeaed3e2f3268 Mon Sep 17 00:00:00 2001 From: rti Date: Fri, 13 Aug 2010 16:05:01 +0200 Subject: [PATCH] Fixed: #1062 Fullscreen with game resolution < desktop resolution --- code/nel/src/3d/driver/opengl/mac/cocoa_adapter.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/nel/src/3d/driver/opengl/mac/cocoa_adapter.mm b/code/nel/src/3d/driver/opengl/mac/cocoa_adapter.mm index d627ee00f..25bcbbd5c 100644 --- a/code/nel/src/3d/driver/opengl/mac/cocoa_adapter.mm +++ b/code/nel/src/3d/driver/opengl/mac/cocoa_adapter.mm @@ -500,6 +500,11 @@ void setWindowSize(nlWindow wnd, uint32 width, uint32 height) // for fullscreen mode, adjust the back buffer size to the desired resolution 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 GLint dim[2] = { width, height }; CGLError error = CGLSetParameter(