QTfrontend/ui/widget/about.cpp
branchsdl2transition
changeset 9677 71626318f80e
parent 9653 327d98e165e2
child 11362 ed5a6478e710
--- a/QTfrontend/ui/widget/about.cpp	Tue Nov 05 11:04:26 2013 +0400
+++ b/QTfrontend/ui/widget/about.cpp	Wed Nov 06 00:59:33 2013 +0400
@@ -99,7 +99,14 @@
     libinfo.append(QString(tr("Unknown Compiler")).arg(__VERSION__) + QString("<br>"));
 #endif
 
-    const SDL_version *sdl_ver = SDL_Linked_Version();
+    const SDL_version *sdl_ver;
+    SDL_version sdl_version;
+#if SDL_MAJOR_VERSION == 2
+    SDL_GetVersion(&sdl_version);
+    sdl_ver = &sdl_version;
+#else
+    sdl_ver = SDL_Linked_Version();
+#endif
     libinfo.append(QString("<a href=\"http://www.libsdl.org/\">SDL</a> version: %1.%2.%3<br>")
         .arg(sdl_ver->major)
         .arg(sdl_ver->minor)