Add CJK font support for sidAmmoCount
authorWuzzy <Wuzzy2@mail.ru>
Thu, 25 Oct 2018 11:37:11 +0200
changeset 13966 4355b8c4099e
parent 13965 0e2fd51c4a52
child 13967 9be2926890cd
Add CJK font support for sidAmmoCount
hedgewars/uStore.pas
--- a/hedgewars/uStore.pas	Thu Oct 25 04:55:27 2018 +0300
+++ b/hedgewars/uStore.pas	Thu Oct 25 11:37:11 2018 +0200
@@ -533,7 +533,7 @@
     // number of weapons in ammo menu
     for i:= Low(CountTexz) to High(CountTexz) do
         begin
-        tmpsurf:= TTF_RenderUTF8_Blended(Fontz[fnt16].Handle, Str2PChar(Format(shortstring(trmsg[sidAmmoCount]), IntToStr(i))), cWhiteColorChannels);
+        tmpsurf:= TTF_RenderUTF8_Blended(Fontz[CheckCJKFont(trmsg[sidAmmoCount],fnt16)].Handle, Str2PChar(Format(shortstring(trmsg[sidAmmoCount]), IntToStr(i))), cWhiteColorChannels);
         tmpsurf:= doSurfaceConversion(tmpsurf);
         FreeAndNilTexture(CountTexz[i]);
         CountTexz[i]:= Surface2Tex(tmpsurf, false);