hedgewars/uWorld.pas
changeset 2152 a2811690da1b
parent 2142 48ed98cfd119
child 2161 0c8634241fa4
equal deleted inserted replaced
2151:541d3a475442 2152:a2811690da1b
    38 	Frames: Longword = 0;
    38 	Frames: Longword = 0;
    39 	WaterColor, DeepWaterColor: TSDL_Color;
    39 	WaterColor, DeepWaterColor: TSDL_Color;
    40 
    40 
    41 implementation
    41 implementation
    42 uses uStore, uMisc, uTeams, uIO, uConsole, uKeys, uLocale, uSound,
    42 uses uStore, uMisc, uTeams, uIO, uConsole, uKeys, uLocale, uSound,
    43 {$IFDEF IPHONE}
    43 {$IFDEF GLES11}
    44 	gles11,
    44 	gles11,
    45 {$ELSE}
    45 {$ELSE}
    46 	GL,
    46 	GL,
    47 {$ENDIF}
    47 {$ENDIF}
    48      uAmmos, uVisualGears, uChat, uLandTexture, uLand;
    48      uAmmos, uVisualGears, uChat, uLandTexture, uLand;
   415       FPS:= Frames;
   415       FPS:= Frames;
   416       Frames:= 0;
   416       Frames:= 0;
   417       CountTicks:= 0;
   417       CountTicks:= 0;
   418       s:= inttostr(FPS) + ' fps';
   418       s:= inttostr(FPS) + ' fps';
   419       if fpsTexture <> nil then FreeTexture(fpsTexture);
   419       if fpsTexture <> nil then FreeTexture(fpsTexture);
   420 {$IFNDEF IPHONE}
   420 {$IFNDEF IPHONEOS}
   421       tmpSurface:= TTF_RenderUTF8_Blended(Fontz[fnt16].Handle, Str2PChar(s), $FFFFFF);
   421       tmpSurface:= TTF_RenderUTF8_Blended(Fontz[fnt16].Handle, Str2PChar(s), $FFFFFF);
   422 {$ENDIF}
   422 {$ENDIF}
   423       fpsTexture:= Surface2Tex(tmpSurface);
   423       fpsTexture:= Surface2Tex(tmpSurface);
   424       SDL_FreeSurface(tmpSurface)
   424       SDL_FreeSurface(tmpSurface)
   425       end;
   425       end;