equal
deleted
inserted
replaced
165 th:= toPowerOf2(Surf^.h); |
165 th:= toPowerOf2(Surf^.h); |
166 |
166 |
167 Surface2Tex^.rx:= Surf^.w / tw; |
167 Surface2Tex^.rx:= Surf^.w / tw; |
168 Surface2Tex^.ry:= Surf^.h / th; |
168 Surface2Tex^.ry:= Surf^.h / th; |
169 |
169 |
170 GetMem(tmpp, tw * th * surf^.format^.BytesPerPixel); |
170 tmpp:= GetMem(tw * th * surf^.format^.BytesPerPixel); |
171 |
171 |
172 fromP4:= Surf^.pixels; |
172 fromP4:= Surf^.pixels; |
173 toP4:= tmpp; |
173 toP4:= tmpp; |
174 |
174 |
175 for y:= 0 to Pred(Surf^.h) do |
175 for y:= 0 to Pred(Surf^.h) do |