# HG changeset patch
# User koda
# Date 1373240420 -7200
# Node ID b825fa990e1c74f18cb4eb69d424db849e7947ec
# Parent 02caf698a8f1f25528154f087a5d6631f9d2fb8a
the same for sdl_image and sdl_ttf
diff -r 02caf698a8f1 -r b825fa990e1c QTfrontend/ui/widget/about.cpp
--- a/QTfrontend/ui/widget/about.cpp Mon Jul 08 01:34:40 2013 +0200
+++ b/QTfrontend/ui/widget/about.cpp Mon Jul 08 01:40:20 2013 +0200
@@ -123,6 +123,35 @@
SDL_UnloadObject(sdlnet_handle);
}
+ void *sdlimage_handle = SDL_LoadObject(sopath("SDL_image"));
+ if (sdlimage_handle != NULL) {
+ SDL_version *(*sdlimage_ver_get)(void) = NULL;
+ sdlimage_ver_get = (SDL_version *(*)(void)) SDL_LoadFunction(sdlimage_handle, "IMG_Linked_Version");
+ if (sdlimage_ver_get != NULL) {
+ SDL_version *sdlimage_ver = sdlimage_ver_get();
+ libinfo.append(QString("SDL_image version: %1.%2.%3
")
+ .arg(sdlimage_ver->major)
+ .arg(sdlimage_ver->minor)
+ .arg(sdlimage_ver->patch));
+ }
+ SDL_UnloadObject(sdlnet_handle);
+ }
+
+ void *sdlttf_handle = SDL_LoadObject(sopath("SDL_ttf"));
+ if (sdlttf_handle != NULL) {
+ SDL_version *(*sdlttf_ver_get)(void) = NULL;
+ sdlttf_ver_get = (SDL_version *(*)(void)) SDL_LoadFunction(sdlttf_handle, "TTF_Linked_Version");
+ if (sdlttf_ver_get != NULL) {
+ SDL_version *sdlttf_ver = sdlttf_ver_get();
+ libinfo.append(QString("SDL_ttf version: %1.%2.%3
")
+ .arg(sdlttf_ver->major)
+ .arg(sdlttf_ver->minor)
+ .arg(sdlttf_ver->patch));
+ }
+ SDL_UnloadObject(sdlnet_handle);
+ }
+
+
libinfo.append(QString("Qt version: %1
").arg(QT_VERSION_STR));
#ifdef VIDEOREC