diff options
author | Johannes Schickel | 2006-04-19 01:05:28 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-04-19 01:05:28 +0000 |
commit | 30787714d30e9202890922ec10833e695bc8a3bf (patch) | |
tree | b2a699d793bbafd7a5fade0f366b3ec3636f4ffe /gui/launcher.cpp | |
parent | ec7e734adb2133a653f500636b101fc09ab6e4ae (diff) | |
download | scummvm-rg350-30787714d30e9202890922ec10833e695bc8a3bf.tar.gz scummvm-rg350-30787714d30e9202890922ec10833e695bc8a3bf.tar.bz2 scummvm-rg350-30787714d30e9202890922ec10833e695bc8a3bf.zip |
Started to prepare the gui for runtime resolution switches.
(some little things could be missing yet though)
svn-id: r22017
Diffstat (limited to 'gui/launcher.cpp')
-rw-r--r-- | gui/launcher.cpp | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp index 73f5471f03..928d36f725 100644 --- a/gui/launcher.cpp +++ b/gui/launcher.cpp @@ -767,6 +767,11 @@ void LauncherDialog::updateButtons() { void LauncherDialog::handleScreenChanged() { #ifndef DISABLE_FANCY_THEMES if (g_gui.evaluator()->getVar("launcher_logo.visible") == 1) { + StaticTextWidget *ver = (StaticTextWidget*)findWidget("launcher_version"); + if (ver) { + ver->setLabel(gScummVMVersionDate); + } + if (!_logo) _logo = new GraphicsWidget(this, "launcher_logo"); ThemeNew *th = (ThemeNew *)g_gui.theme(); @@ -774,9 +779,23 @@ void LauncherDialog::handleScreenChanged() { _logo->setGfx(th->getImageSurface(th->kThemeLogo)); } else { - delete _logo; + StaticTextWidget *ver = (StaticTextWidget*)findWidget("launcher_version"); + if (ver) { + ver->setLabel(gScummVMFullVersion); + } + + if (_logo) { + deleteWidget(_logo); + _logo->setNext(0); + delete _logo; + _logo = 0; + } } #endif + + _w = g_system->getOverlayWidth(); + _h = g_system->getOverlayHeight(); + Dialog::handleScreenChanged(); } |