diff options
| author | Max Horn | 2004-02-24 22:39:42 +0000 |
|---|---|---|
| committer | Max Horn | 2004-02-24 22:39:42 +0000 |
| commit | d158280425efac5f4ec72e00fb2b7389cdfb5a75 (patch) | |
| tree | f1bdab69e381b2a28320fdeb30936482565e5099 /gui | |
| parent | 70f910cbe19e9c7320a56fa48669f7a5e9df00e6 (diff) | |
| download | scummvm-rg350-d158280425efac5f4ec72e00fb2b7389cdfb5a75.tar.gz scummvm-rg350-d158280425efac5f4ec72e00fb2b7389cdfb5a75.tar.bz2 scummvm-rg350-d158280425efac5f4ec72e00fb2b7389cdfb5a75.zip | |
the OSystem changes we discussed on the ML (note: renaming of the existing OSystem API is not yet finished); porters will have to fix their ports to get them to compile again
svn-id: r13036
Diffstat (limited to 'gui')
| -rw-r--r-- | gui/options.cpp | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/gui/options.cpp b/gui/options.cpp index 0b56991b1e..cb42735246 100644 --- a/gui/options.cpp +++ b/gui/options.cpp @@ -77,15 +77,11 @@ void OptionsDialog::open() { _gfxPopUp->setEnabled(false); if (ConfMan.hasKey("gfx_mode", _domain)) { - const GraphicsMode *gm = g_gfx_modes; + const OSystem::GraphicsMode *gm = g_system->getSupportedGraphicsModes(); String gfxMode = ConfMan.get("gfx_mode", _domain); int gfxCount = 1; while (gm->name) { - OSystem::Property prop; - prop.gfx_mode = gm->id; - - if (g_system->property(OSystem::PROP_HAS_SCALER, &prop) != 0) - gfxCount++; + gfxCount++; if (scumm_stricmp(gm->name, gfxMode.c_str()) == 0) _gfxPopUp->setSelected(gfxCount); @@ -255,7 +251,7 @@ void OptionsDialog::setVolumeSettingsState(bool enabled) { int OptionsDialog::addGraphicControls(GuiObject *boss, int yoffset) { const int x = 10; const int w = _w - 2 * 10; - const GraphicsMode *gm = g_gfx_modes; + const OSystem::GraphicsMode *gm = g_system->getSupportedGraphicsModes(); // The GFX mode popup _gfxPopUp = new PopUpWidget(boss, x-5, yoffset, w+5, kLineHeight, "Graphics mode: ", 100); @@ -263,17 +259,10 @@ int OptionsDialog::addGraphicControls(GuiObject *boss, int yoffset) { _gfxPopUp->appendEntry("<default>"); _gfxPopUp->appendEntry(""); - while (gm->name) { - OSystem::Property prop; - prop.gfx_mode = gm->id; - - if (g_system->property(OSystem::PROP_HAS_SCALER, &prop) != 0) { - _gfxPopUp->appendEntry(gm->name, gm->id); - - } - - gm++; - } + while (gm->name) { + _gfxPopUp->appendEntry(gm->name, gm->id); + gm++; + } // Fullscreen checkbox _fullscreenCheckbox = new CheckboxWidget(boss, x, yoffset, w, 16, "Fullscreen mode"); |
