diff options
author | Johannes Schickel | 2006-04-16 20:33:52 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-04-16 20:33:52 +0000 |
commit | b99632831f417d751d41deddc3a7b00b3dcc56b3 (patch) | |
tree | 4a4b634a77f8b62f96264f6eba5447ee8b55f1c0 /gui/launcher.cpp | |
parent | e9cbf5fcbd1af19d1936593d1de736c0e0e91f89 (diff) | |
download | scummvm-rg350-b99632831f417d751d41deddc3a7b00b3dcc56b3.tar.gz scummvm-rg350-b99632831f417d751d41deddc3a7b00b3dcc56b3.tar.bz2 scummvm-rg350-b99632831f417d751d41deddc3a7b00b3dcc56b3.zip |
This should fix wrong colors of the scummvm logo in the new theme after screen change.
svn-id: r21953
Diffstat (limited to 'gui/launcher.cpp')
-rw-r--r-- | gui/launcher.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp index de47a1946a..f7cd658716 100644 --- a/gui/launcher.cpp +++ b/gui/launcher.cpp @@ -763,4 +763,19 @@ void LauncherDialog::updateButtons() { } } +void LauncherDialog::handleScreenChanged() { +#ifndef DISABLE_FANCY_THEMES + if (g_gui.evaluator()->getVar("launcher_logo.visible") == 1) { + GraphicsWidget *logo = new GraphicsWidget(this, "launcher_logo"); + ThemeNew *th = (ThemeNew *)g_gui.theme(); + logo->useTransparency(true); + + logo->setGfx(th->getImageSurface(th->kThemeLogo)); + + new StaticTextWidget(this, "launcher_version", gScummVMVersionDate); + } +#endif + Dialog::handleScreenChanged(); +} + } // End of namespace GUI |