equal
deleted
inserted
replaced
154 if SDL_MustLock(surf) then |
154 if SDL_MustLock(surf) then |
155 SDLTry(SDL_LockSurface(surf) >= 0, true); |
155 SDLTry(SDL_LockSurface(surf) >= 0, true); |
156 |
156 |
157 fromP4:= Surf^.pixels; |
157 fromP4:= Surf^.pixels; |
158 |
158 |
159 if cGrayScale then |
159 if GrayScale then |
160 Surface2GrayScale(Surf); |
160 Surface2GrayScale(Surf); |
161 |
161 |
162 if (not SupportNPOTT) and (not (isPowerOf2(Surf^.w) and isPowerOf2(Surf^.h))) then |
162 if (not SupportNPOTT) and (not (isPowerOf2(Surf^.w) and isPowerOf2(Surf^.h))) then |
163 begin |
163 begin |
164 tw:= toPowerOf2(Surf^.w); |
164 tw:= toPowerOf2(Surf^.w); |