[Scummvm-cvs-logs] SF.net SVN: scummvm:[44307] scummvm/trunk/engines/engine.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Thu Sep 24 18:17:25 CEST 2009


Revision: 44307
          http://scummvm.svn.sourceforge.net/scummvm/?rev=44307&view=rev
Author:   lordhoto
Date:     2009-09-24 16:17:25 +0000 (Thu, 24 Sep 2009)

Log Message:
-----------
Changed some code to follow our guidelines.

Modified Paths:
--------------
    scummvm/trunk/engines/engine.cpp

Modified: scummvm/trunk/engines/engine.cpp
===================================================================
--- scummvm/trunk/engines/engine.cpp	2009-09-24 14:07:02 UTC (rev 44306)
+++ scummvm/trunk/engines/engine.cpp	2009-09-24 16:17:25 UTC (rev 44307)
@@ -134,8 +134,8 @@
 		if (format)
 			g_system->initSize(width, height, format);
 		else { 
-			Graphics::PixelFormat Format = g_system->getSupportedFormats().front();
-			g_system->initSize(width, height, &Format);
+			Graphics::PixelFormat bestFormat = g_system->getSupportedFormats().front();
+			g_system->initSize(width, height, &bestFormat);
 		}
 #else
 		g_system->initSize(width, height);
@@ -188,13 +188,15 @@
 		dialog.runModal();
 	}
 }
+
 void initGraphics(int width, int height, bool defaultTo1xScaler, const Common::List<Graphics::PixelFormat> &formatList) {
-	Graphics::PixelFormat format = Graphics::findCompatibleFormat(g_system->getSupportedFormats(),formatList);
-	initGraphics(width,height,defaultTo1xScaler,&format);
+	Graphics::PixelFormat format = Graphics::findCompatibleFormat(g_system->getSupportedFormats(), formatList);
+	initGraphics(width, height, defaultTo1xScaler, &format);
 }
+
 void initGraphics(int width, int height, bool defaultTo1xScaler) {
 	Graphics::PixelFormat format = Graphics::PixelFormat::createFormatCLUT8();
-	initGraphics(width,height,defaultTo1xScaler,&format);
+	initGraphics(width, height, defaultTo1xScaler, &format);
 }
 
 void GUIErrorMessage(const Common::String msg) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list