equal
deleted
inserted
replaced
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 |