[Scummvm-cvs-logs] SF.net SVN: scummvm: [22521] scummvm/trunk/gui/options.cpp
sev at users.sourceforge.net
sev at users.sourceforge.net
Thu May 18 08:42:04 CEST 2006
Revision: 22521
Author: sev
Date: 2006-05-18 08:40:44 -0700 (Thu, 18 May 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22521&view=rev
Log Message:
-----------
Properly set GFX mode selected in GUI. Fixes selection of 1x scaler.
Modified Paths:
--------------
scummvm/trunk/gui/options.cpp
Modified: scummvm/trunk/gui/options.cpp
===================================================================
--- scummvm/trunk/gui/options.cpp 2006-05-18 14:28:19 UTC (rev 22520)
+++ scummvm/trunk/gui/options.cpp 2006-05-18 15:40:44 UTC (rev 22521)
@@ -242,9 +242,17 @@
ConfMan.setBool("fullscreen", _fullscreenCheckbox->getState(), _domain);
ConfMan.setBool("aspect_ratio", _aspectCheckbox->getState(), _domain);
- if ((int32)_gfxPopUp->getSelectedTag() >= 0)
- ConfMan.set("gfx_mode", _gfxPopUp->getSelectedString(), _domain);
+ if ((int32)_gfxPopUp->getSelectedTag() >= 0) {
+ const OSystem::GraphicsMode *gm = g_system->getSupportedGraphicsModes();
+ while (gm->name) {
+ if (gm->id == (int)_gfxPopUp->getSelectedTag()) {
+ ConfMan.set("gfx_mode", gm->name, _domain);
+ break;
+ }
+ }
+ }
+
if ((int32)_renderModePopUp->getSelectedTag() >= 0)
ConfMan.set("render_mode", Common::getRenderModeCode((Common::RenderMode)_renderModePopUp->getSelectedTag()), _domain);
} else {
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