hedgewars/uMisc.pas
changeset 3537 8f5b3108f29c
parent 3534 51521238724f
child 3593 ae50f63e4fa9
equal deleted inserted replaced
3536:7d99655130ff 3537:8f5b3108f29c
   401 function NewTexture(width, height: Longword; buf: Pointer): PTexture;
   401 function NewTexture(width, height: Longword; buf: Pointer): PTexture;
   402 begin
   402 begin
   403 new(NewTexture);
   403 new(NewTexture);
   404 NewTexture^.PrevTexture:= nil;
   404 NewTexture^.PrevTexture:= nil;
   405 NewTexture^.NextTexture:= nil;
   405 NewTexture^.NextTexture:= nil;
       
   406 NewTexture^.Scale:= 1;
   406 if TextureList <> nil then
   407 if TextureList <> nil then
   407     begin
   408     begin
   408     TextureList^.PrevTexture:= NewTexture;
   409     TextureList^.PrevTexture:= NewTexture;
   409     NewTexture^.NextTexture:= TextureList
   410     NewTexture^.NextTexture:= TextureList
   410     end;
   411     end;