[Scummvm-cvs-logs] SF.net SVN: scummvm:[50835] scummvm/trunk/backends/platform/sdl/sdl.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Tue Jul 13 01:19:56 CEST 2010
Revision: 50835
http://scummvm.svn.sourceforge.net/scummvm/?rev=50835&view=rev
Author: fingolfin
Date: 2010-07-12 23:19:56 +0000 (Mon, 12 Jul 2010)
Log Message:
-----------
Get rid of yet another global object with constructor
Modified Paths:
--------------
scummvm/trunk/backends/platform/sdl/sdl.cpp
Modified: scummvm/trunk/backends/platform/sdl/sdl.cpp
===================================================================
--- scummvm/trunk/backends/platform/sdl/sdl.cpp 2010-07-12 23:19:33 UTC (rev 50834)
+++ scummvm/trunk/backends/platform/sdl/sdl.cpp 2010-07-12 23:19:56 UTC (rev 50835)
@@ -96,11 +96,11 @@
}
#if !defined(_WIN32_WCE) && !defined(__SYMBIAN32__) && defined(USE_SCALERS)
-static const size_t AR_COUNT = 4;
-static const char* desiredAspectRatioAsStrings[AR_COUNT] = { "auto", "4/3", "16/9", "16/10" };
-static const AspectRatio desiredAspectRatios[AR_COUNT] = { AspectRatio(0, 0), AspectRatio(4,3), AspectRatio(16,9), AspectRatio(16,10) };
+static AspectRatio getDesiredAspectRatio() {
+ const size_t AR_COUNT = 4;
+ const char* desiredAspectRatioAsStrings[AR_COUNT] = { "auto", "4/3", "16/9", "16/10" };
+ const AspectRatio desiredAspectRatios[AR_COUNT] = { AspectRatio(0, 0), AspectRatio(4,3), AspectRatio(16,9), AspectRatio(16,10) };
-static AspectRatio getDesiredAspectRatio() {
//TODO : We could parse an arbitrary string, if we code enough proper validation
Common::String desiredAspectRatio = ConfMan.get("desired_screen_aspect_ratio");
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