From 30787714d30e9202890922ec10833e695bc8a3bf Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 19 Apr 2006 01:05:28 +0000 Subject: Started to prepare the gui for runtime resolution switches. (some little things could be missing yet though) svn-id: r22017 --- gui/launcher.cpp | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'gui/launcher.cpp') 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(); } -- cgit v1.2.3