# HG changeset patch
# User Wuzzy <Wuzzy2@mail.ru>
# Date 1540460920 -7200
# Node ID 9be2926890cd55539b08844c0930dd555c0ae1cf
# Parent  4355b8c4099e8c02067cc6282f9705aa67d23c42
Support CJK fonts for sidFPS as well

diff -r 4355b8c4099e -r 9be2926890cd 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);