equal
deleted
inserted
replaced
428 begin |
428 begin |
429 imageWidth:= tmpsurf^.w; |
429 imageWidth:= tmpsurf^.w; |
430 imageHeight:= tmpsurf^.h |
430 imageHeight:= tmpsurf^.h |
431 end; |
431 end; |
432 if getDimensions then |
432 if getDimensions then |
433 begin |
433 if Height = -1 then //BlueWater |
434 Width:= tmpsurf^.w; |
434 begin |
435 Height:= tmpsurf^.h |
435 Width:= tmpsurf^.w; |
436 end; |
436 Height:= tmpsurf^.h div watFrames; |
|
437 end |
|
438 else if Height = -2 then //SDWater |
|
439 begin |
|
440 Width:= tmpsurf^.w; |
|
441 Height:= tmpsurf^.h div watSDFrames; |
|
442 end |
|
443 else |
|
444 begin |
|
445 Width:= tmpsurf^.w; |
|
446 Height:= tmpsurf^.h |
|
447 end; |
437 if (ii in [sprSky, sprSkyL, sprSkyR, sprHorizont, sprHorizontL, sprHorizontR]) then |
448 if (ii in [sprSky, sprSkyL, sprSkyR, sprHorizont, sprHorizontL, sprHorizontR]) then |
438 begin |
449 begin |
439 Texture:= Surface2Tex(tmpsurf, true); |
450 Texture:= Surface2Tex(tmpsurf, true); |
440 Texture^.Scale:= 2 |
451 Texture^.Scale:= 2 |
441 end |
452 end |