# HG changeset patch
# User koda
# Date 1373241000 -7200
# Node ID 26f0bf0de1722125a1d2ddf8603f7d7bd39ea25b
# Parent b825fa990e1c74f18cb4eb69d424db849e7947ec
use linked version for sdl and sdl_mixer too for consistency, comment some things
diff -r b825fa990e1c -r 26f0bf0de172 QTfrontend/ui/widget/about.cpp
--- a/QTfrontend/ui/widget/about.cpp Mon Jul 08 01:40:20 2013 +0200
+++ b/QTfrontend/ui/widget/about.cpp Mon Jul 08 01:50:00 2013 +0200
@@ -99,16 +99,20 @@
libinfo.append(QString(tr("Unknown Compiler")).arg(__VERSION__) + QString("
"));
#endif
+ const SDL_version *sdl_ver = SDL_Linked_Version();
libinfo.append(QString("SDL version: %1.%2.%3
")
- .arg(SDL_MAJOR_VERSION)
- .arg(SDL_MINOR_VERSION)
- .arg(SDL_PATCHLEVEL));
+ .arg(sdl_ver->major)
+ .arg(sdl_ver->minor)
+ .arg(sdl_ver->patch));
+ const SDL_version *sdlmixer_ver = Mix_Linked_Version();
libinfo.append(QString("SDL_mixer version: %1.%2.%3
")
- .arg(MIX_MAJOR_VERSION)
- .arg(MIX_MINOR_VERSION)
- .arg(MIX_PATCHLEVEL));
+ .arg(sdlmixer_ver->major)
+ .arg(sdlmixer_ver->minor)
+ .arg(sdlmixer_ver->patch));
+ // the remaining sdl modules used only in engine, so instead of needlessly linking them here
+ // we dynamically call the function returning the linked version
void *sdlnet_handle = SDL_LoadObject(sopath("SDL_net"));
if (sdlnet_handle != NULL) {
SDL_version *(*sdlnet_ver_get)(void) = NULL;
@@ -166,6 +170,8 @@
.arg(PHYSFS_VER_MINOR)
.arg(PHYSFS_VER_PATCH));
+ // TODO: how to add Lua information?
+
QLabel * lblLibInfo = new QLabel();
lblLibInfo->setOpenExternalLinks(true);
lblLibInfo->setText(libinfo);