hedgewars/uStore.pas
changeset 13881 aa321e51da14
parent 13837 10a3b80130b5
child 13884 6b2c87490f0a
equal deleted inserted replaced
13880:f81fad2f0e70 13881:aa321e51da14
   509 
   509 
   510     PauseTexture:= RenderStringTex(trmsg[sidPaused], cCentralMessageColor, fntBig);
   510     PauseTexture:= RenderStringTex(trmsg[sidPaused], cCentralMessageColor, fntBig);
   511     AFKTexture:= RenderStringTex(trmsg[sidAFK], cCentralMessageColor, fntBig);
   511     AFKTexture:= RenderStringTex(trmsg[sidAFK], cCentralMessageColor, fntBig);
   512     keyConfirm:= KeyBindToName('confirm');
   512     keyConfirm:= KeyBindToName('confirm');
   513     keyQuit:= KeyBindToName('quit');
   513     keyQuit:= KeyBindToName('quit');
   514     ConfirmTexture:= RenderStringTex(Format(trmsg[sidConfirm], keyConfirm, keyQuit), cCentralMessageColor, fntBig);
   514     ConfirmTexture:= RenderStringTex(FormatA(trmsg[sidConfirm], ansistring(keyConfirm), ansistring(keyQuit)), cCentralMessageColor, fntBig);
   515     SyncTexture:= RenderStringTex(trmsg[sidSync], cCentralMessageColor, fntBig);
   515     SyncTexture:= RenderStringTex(trmsg[sidSync], cCentralMessageColor, fntBig);
   516 
   516 
   517     if not reload then
   517     if not reload then
   518         AddProgress;
   518         AddProgress;
   519 
   519 
   531             end;
   531             end;
   532 
   532 
   533     // number of weapons in ammo menu
   533     // number of weapons in ammo menu
   534     for i:= Low(CountTexz) to High(CountTexz) do
   534     for i:= Low(CountTexz) to High(CountTexz) do
   535         begin
   535         begin
   536         tmpsurf:= TTF_RenderUTF8_Blended(Fontz[fnt16].Handle, Str2PChar(Format(trmsg[sidAmmoCount], IntToStr(i))), cWhiteColorChannels);
   536         tmpsurf:= TTF_RenderUTF8_Blended(Fontz[fnt16].Handle, Str2PChar(Format(shortstring(trmsg[sidAmmoCount]), IntToStr(i))), cWhiteColorChannels);
   537         tmpsurf:= doSurfaceConversion(tmpsurf);
   537         tmpsurf:= doSurfaceConversion(tmpsurf);
   538         FreeAndNilTexture(CountTexz[i]);
   538         FreeAndNilTexture(CountTexz[i]);
   539         CountTexz[i]:= Surface2Tex(tmpsurf, false);
   539         CountTexz[i]:= Surface2Tex(tmpsurf, false);
   540         SDL_FreeSurface(tmpsurf)
   540         SDL_FreeSurface(tmpsurf)
   541         end;
   541         end;