hedgewars/uTextures.pas
changeset 6982 8d41d22a291d
parent 6700 e04da46ee43c
child 7080 dbf43c07a507
child 7151 ec15d9e1a7e3
equal deleted inserted replaced
6981:045e8162c9cd 6982:8d41d22a291d
   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);