equal
deleted
inserted
replaced
297 begin |
297 begin |
298 if imageWidth = 0 then imageWidth := tmpsurf^.w; |
298 if imageWidth = 0 then imageWidth := tmpsurf^.w; |
299 if imageHeight = 0 then imageHeight := tmpsurf^.h; |
299 if imageHeight = 0 then imageHeight := tmpsurf^.h; |
300 if Width = 0 then Width:= tmpsurf^.w; |
300 if Width = 0 then Width:= tmpsurf^.w; |
301 if Height = 0 then Height:= tmpsurf^.h; |
301 if Height = 0 then Height:= tmpsurf^.h; |
302 if (ii in [sprSky, sprSkyL, sprSkyR, sprHorizont, sprHorizontL, sprHorizontR, sprFlake]) then |
302 if (ii in [sprSky, sprSkyL, sprSkyR, sprHorizont, sprHorizontL, sprHorizontR]) then |
303 Texture:= Surface2Tex(tmpsurf, true) |
303 Texture:= Surface2Tex(tmpsurf, true) |
304 else |
304 else |
305 begin |
305 begin |
306 Texture:= Surface2Tex(tmpsurf, false); |
306 Texture:= Surface2Tex(tmpsurf, false); |
307 if (ii = sprWater) and not cReducedQuality then // HACK: We should include some sprite attribute to define the texture wrap directions |
307 if (ii = sprWater) and not cReducedQuality then // HACK: We should include some sprite attribute to define the texture wrap directions |