OSGHUD: convert flags from svg to png images

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8978 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 85d6e0cc339618ada52c6c069215f21c8e109e47
Former-commit-id: 1eb8dc508871c87f0fc6080fbc910fa49d3a0109
This commit is contained in:
madbad 2023-06-05 17:32:24 +00:00
parent 2beffdc810
commit d66edd8690

View file

@ -2257,7 +2257,11 @@ void SDHUD::Refresh(tSituation *s, const SDFrameInfo* frameInfo,
return std::tolower(c);
});
temp.str("");
temp << "data/img/flags/4x3/" << nationname.c_str() <<".svg";
std::string uk = "uk";
if (nationname == uk){
nationname = "gb";
}
temp << "data/img/flags/4x3png/" << nationname.c_str() <<".png";
changeImageTexture(hudImgElements["driverinfo-flag"], temp.str());
//edithud