Browse Source

Revert reverting 8d29d4ca285e.

vrld 14 years ago
parent
commit
d25a3a36ce
1 changed files with 2 additions and 5 deletions
  1. 2 5
      src/modules/graphics/opengl/Graphics.cpp

+ 2 - 5
src/modules/graphics/opengl/Graphics.cpp

@@ -299,14 +299,11 @@ namespace opengl
 	bool Graphics::toggleFullscreen()
 	bool Graphics::toggleFullscreen()
 	{
 	{
 		// Try to do the change.
 		// Try to do the change.
-		if(!setMode(currentMode.width,
+		return setMode(currentMode.width,
 			currentMode.height,
 			currentMode.height,
 			!currentMode.fullscreen,
 			!currentMode.fullscreen,
 			currentMode.vsync,
 			currentMode.vsync,
-			currentMode.fsaa))
-			return false;
-		currentMode.fullscreen = !currentMode.fullscreen;
-		return true;
+			currentMode.fsaa);
 	}
 	}