hedgewars/uTextures.pas
changeset 6467 090269e528df
parent 6394 f0a9042e7387
child 6580 6155187bf599
equal deleted inserted replaced
6466:afd8c9a3672d 6467:090269e528df
   117         fromP4^[x]:= tw;
   117         fromP4^[x]:= tw;
   118         end;
   118         end;
   119     fromP4:= @(fromP4^[Surf^.pitch div 4])
   119     fromP4:= @(fromP4^[Surf^.pitch div 4])
   120     end;
   120     end;
   121 end;
   121 end;
       
   122 
       
   123 
   122 function Surface2Tex(surf: PSDL_Surface; enableClamp: boolean): PTexture;
   124 function Surface2Tex(surf: PSDL_Surface; enableClamp: boolean): PTexture;
   123 var tw, th, x, y: Longword;
   125 var tw, th, x, y: Longword;
   124     tmpp: pointer;
   126     tmpp: pointer;
   125     fromP4, toP4: PLongWordArray;
   127     fromP4, toP4: PLongWordArray;
   126 begin
   128 begin