From 8a5f44d797230d3a72697df6d1ee785a04b01d0e Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 9 Mar 2006 05:18:00 +0000 Subject: Converted last dialogs to new scheme. Now it seems to be everything. Please, test throghoutly. svn-id: r21157 --- gui/options.cpp | 32 ++++---------------------------- 1 file changed, 4 insertions(+), 28 deletions(-) (limited to 'gui/options.cpp') diff --git a/gui/options.cpp b/gui/options.cpp index e2c910ec5a..26fc017992 100644 --- a/gui/options.cpp +++ b/gui/options.cpp @@ -356,9 +356,9 @@ void OptionsDialog::addGraphicControls(GuiObject *boss, String prefix) { _aspectCheckbox = new CheckboxWidget(boss, prefix + "grAspectCheckbox", "Aspect ratio correction", 0, 0); #ifdef SMALL_SCREEN_DEVICE - _fullscreenCheckbox->setState(TRUE); - _fullscreenCheckbox->setEnabled(FALSE); - _aspectCheckbox->setEnabled(FALSE); + _fullscreenCheckbox->setState(true); + _fullscreenCheckbox->setEnabled(false); + _aspectCheckbox->setEnabled(false); #endif _enableGraphicSettings = true; @@ -436,32 +436,8 @@ void OptionsDialog::addVolumeControls(GuiObject *boss, String prefix) { GlobalOptionsDialog::GlobalOptionsDialog() - : OptionsDialog(Common::ConfigManager::kApplicationDomain, 10, 40, 320 - 2 * 10, 140) { + : OptionsDialog(Common::ConfigManager::kApplicationDomain, "globaloptions") { - const int screenW = g_system->getOverlayWidth(); - const int screenH = g_system->getOverlayHeight(); - - if (screenW >= 400 && screenH >= 300) { - _w = screenW - 2 * 10; - _h = screenH - 2 * 40; - _x = 10; - _y = 40; - } else { - _w = screenW - 2 * 10; - _h = screenH - 1 * 20; - _x = 10; - _y = 20; - } - - init(); -} - -GlobalOptionsDialog::GlobalOptionsDialog(String name) - : OptionsDialog(Common::ConfigManager::kApplicationDomain, name) { - init(); -} - -void GlobalOptionsDialog::init() { // The tab widget TabWidget *tab = new TabWidget(this, "globaloptions_tabwidget"); tab->setHints(THEME_HINT_FIRST_DRAW | THEME_HINT_SAVE_BACKGROUND); -- cgit v1.2.3