QTfrontend/ui/widget/about.cpp
changeset 11384 95d5badcb44f
parent 11362 ed5a6478e710
child 11830 6078cf0e4944
equal deleted inserted replaced
11383:d3b603323b2b 11384:95d5badcb44f
   101     libinfo.append(QString(tr("Unknown Compiler")).arg(__VERSION__) + QString("<br>"));
   101     libinfo.append(QString(tr("Unknown Compiler")).arg(__VERSION__) + QString("<br>"));
   102 #endif
   102 #endif
   103 
   103 
   104     const SDL_version *sdl_ver;
   104     const SDL_version *sdl_ver;
   105     SDL_version sdl_version;
   105     SDL_version sdl_version;
   106 #if SDL_MAJOR_VERSION == 2
       
   107     SDL_GetVersion(&sdl_version);
   106     SDL_GetVersion(&sdl_version);
   108     sdl_ver = &sdl_version;
   107     sdl_ver = &sdl_version;
   109 #else
   108     libinfo.append(QString("<a href=\"http://www.libsdl.org/\">SDL2</a> version: %1.%2.%3<br>")
   110     sdl_ver = SDL_Linked_Version();
       
   111 #endif
       
   112     libinfo.append(QString("<a href=\"http://www.libsdl.org/\">SDL</a> version: %1.%2.%3<br>")
       
   113         .arg(sdl_ver->major)
   109         .arg(sdl_ver->major)
   114         .arg(sdl_ver->minor)
   110         .arg(sdl_ver->minor)
   115         .arg(sdl_ver->patch));
   111         .arg(sdl_ver->patch));
   116 
   112 
   117     const SDL_version *sdlmixer_ver = Mix_Linked_Version();
   113     const SDL_version *sdlmixer_ver = Mix_Linked_Version();
   118     libinfo.append(QString("<a href=\"http://www.libsdl.org/\">SDL_mixer</a> version: %1.%2.%3<br>")
   114     libinfo.append(QString("<a href=\"http://www.libsdl.org/\">SDL2_mixer</a> version: %1.%2.%3<br>")
   119         .arg(sdlmixer_ver->major)
   115         .arg(sdlmixer_ver->major)
   120         .arg(sdlmixer_ver->minor)
   116         .arg(sdlmixer_ver->minor)
   121         .arg(sdlmixer_ver->patch));
   117         .arg(sdlmixer_ver->patch));
   122 
   118 
   123     // the remaining sdl modules used only in engine, so instead of needlessly linking them here
   119     // the remaining sdl modules used only in engine, so instead of needlessly linking them here