QTfrontend/ui/widget/about.cpp
branchsdl2transition
changeset 9677 71626318f80e
parent 9653 327d98e165e2
child 11362 ed5a6478e710
equal deleted inserted replaced
9676:ce7396d4eaf7 9677:71626318f80e
    97     libinfo.append(QString("<a href=\"http://gcc.gnu.org\">GCC</a> %1<br>").arg(__VERSION__));
    97     libinfo.append(QString("<a href=\"http://gcc.gnu.org\">GCC</a> %1<br>").arg(__VERSION__));
    98 #else
    98 #else
    99     libinfo.append(QString(tr("Unknown Compiler")).arg(__VERSION__) + QString("<br>"));
    99     libinfo.append(QString(tr("Unknown Compiler")).arg(__VERSION__) + QString("<br>"));
   100 #endif
   100 #endif
   101 
   101 
   102     const SDL_version *sdl_ver = SDL_Linked_Version();
   102     const SDL_version *sdl_ver;
       
   103     SDL_version sdl_version;
       
   104 #if SDL_MAJOR_VERSION == 2
       
   105     SDL_GetVersion(&sdl_version);
       
   106     sdl_ver = &sdl_version;
       
   107 #else
       
   108     sdl_ver = SDL_Linked_Version();
       
   109 #endif
   103     libinfo.append(QString("<a href=\"http://www.libsdl.org/\">SDL</a> version: %1.%2.%3<br>")
   110     libinfo.append(QString("<a href=\"http://www.libsdl.org/\">SDL</a> version: %1.%2.%3<br>")
   104         .arg(sdl_ver->major)
   111         .arg(sdl_ver->major)
   105         .arg(sdl_ver->minor)
   112         .arg(sdl_ver->minor)
   106         .arg(sdl_ver->patch));
   113         .arg(sdl_ver->patch));
   107 
   114