hedgewars/uTextures.pas
changeset 7186 013deb83086b
parent 7080 dbf43c07a507
parent 7151 ec15d9e1a7e3
child 7291 ad4b6c2b09e8
equal deleted inserted replaced
7138:f8248bcba8f1 7186:013deb83086b
   210     th:= toPowerOf2(Surf^.h);
   210     th:= toPowerOf2(Surf^.h);
   211 
   211 
   212     Surface2Tex^.atlas^.w:=tw;
   212     Surface2Tex^.atlas^.w:=tw;
   213     Surface2Tex^.atlas^.h:=th;
   213     Surface2Tex^.atlas^.h:=th;
   214 
   214 
   215     GetMem(tmpp, tw * th * surf^.format^.BytesPerPixel);
   215     tmpp:= GetMem(tw * th * surf^.format^.BytesPerPixel);
   216 
   216 
   217     fromP4:= Surf^.pixels;
   217     fromP4:= Surf^.pixels;
   218     toP4:= tmpp;
   218     toP4:= tmpp;
   219 
   219 
   220     for y:= 0 to Pred(Surf^.h) do
   220     for y:= 0 to Pred(Surf^.h) do