Commits

Bart van Strien committed 8d29d4c

Fix toggleFullscreen

Comments (0)

Files changed (1)

src/modules/graphics/opengl/Graphics.cpp

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