79 begin |
80 begin |
80 color:= colors[str[1]]; |
81 color:= colors[str[1]]; |
81 delete(str, 1, 1) |
82 delete(str, 1, 1) |
82 end; |
83 end; |
83 |
84 |
84 |
85 font:= CheckCJKFont(str, fnt16); |
85 TTF_SizeUTF8(Fontz[fnt16].Handle, Str2PChar(str), w, h); |
86 TTF_SizeUTF8(Fontz[font].Handle, Str2PChar(str), w, h); |
86 |
87 |
87 resSurface:= SDL_CreateRGBSurface(0, toPowerOf2(w), toPowerOf2(h), 32, RMask, GMask, BMask, AMask); |
88 resSurface:= SDL_CreateRGBSurface(0, toPowerOf2(w), toPowerOf2(h), 32, RMask, GMask, BMask, AMask); |
88 |
89 |
89 strSurface:= TTF_RenderUTF8_Solid(Fontz[fnt16].Handle, Str2PChar(str), color); |
90 strSurface:= TTF_RenderUTF8_Solid(Fontz[font].Handle, Str2PChar(str), color); |
90 cl.Width:= w + 4; |
91 cl.Width:= w + 4; |
91 SDL_UpperBlit(strSurface, nil, resSurface, nil); |
92 SDL_UpperBlit(strSurface, nil, resSurface, nil); |
92 SDL_FreeSurface(strSurface); |
93 SDL_FreeSurface(strSurface); |
93 |
94 |
94 cl.Time:= RealTicks + 12500; |
95 cl.Time:= RealTicks + 12500; |