Support CJK fonts for sidFPS as well
authorWuzzy <Wuzzy2@mail.ru>
Thu, 25 Oct 2018 11:48:40 +0200
changeset 13967 9be2926890cd
parent 13966 4355b8c4099e
child 13968 299f0988ceb6
Support CJK fonts for sidFPS as well
hedgewars/uWorld.pas
--- a/hedgewars/uWorld.pas	Thu Oct 25 11:37:11 2018 +0200
+++ b/hedgewars/uWorld.pas	Thu Oct 25 11:48:40 2018 +0200
@@ -1693,7 +1693,7 @@
             Frames:= 0;
             CountTicks:= 0;
             s:= Format(shortstring(trmsg[sidFPS]), inttostr(FPS));
-            tmpSurface:= TTF_RenderUTF8_Blended(Fontz[fnt16].Handle, Str2PChar(s), cWhiteColorChannels);
+            tmpSurface:= TTF_RenderUTF8_Blended(Fontz[CheckCJKFont(trmsg[sidFPS],fnt16)].Handle, Str2PChar(s), cWhiteColorChannels);
             tmpSurface:= doSurfaceConversion(tmpSurface);
             FreeAndNilTexture(fpsTexture);
             fpsTexture:= Surface2Tex(tmpSurface, false);