hedgewars/uStore.pas
changeset 2240 7ce9e6b7be3b
parent 2230 d6963f72d21a
child 2244 853a1db1cff6
equal deleted inserted replaced
2239:d7b5c65f7544 2240:7ce9e6b7be3b
   279 	with SpritesData[ii] do
   279 	with SpritesData[ii] do
   280         // FIXME - add a sprite attribute
   280         // FIXME - add a sprite attribute
   281         if (not cReducedQuality) or ((ii <> sprSky) and (ii <> sprHorizont) and (ii <> sprFlake)) then
   281         if (not cReducedQuality) or ((ii <> sprSky) and (ii <> sprHorizont) and (ii <> sprFlake)) then
   282 		begin
   282 		begin
   283 			if AltPath = ptNone then
   283 			if AltPath = ptNone then
       
   284 {$IFDEF IPHONEOS}
       
   285 				tmpsurf:= LoadImage(Pathz[Path] + '/' + FileName, ifAlpha or ifTransparent)
       
   286 {$ELSE}
   284 				tmpsurf:= LoadImage(Pathz[Path] + '/' + FileName, ifAlpha or ifCritical or ifTransparent)
   287 				tmpsurf:= LoadImage(Pathz[Path] + '/' + FileName, ifAlpha or ifCritical or ifTransparent)
       
   288 {$ENDIF}
   285 			else begin
   289 			else begin
   286 				tmpsurf:= LoadImage(Pathz[Path] + '/' + FileName, ifAlpha or ifTransparent);
   290 				tmpsurf:= LoadImage(Pathz[Path] + '/' + FileName, ifAlpha or ifTransparent);
   287 				if tmpsurf = nil then
   291 				if tmpsurf = nil then
   288 					tmpsurf:= LoadImage(Pathz[AltPath] + '/' + FileName, ifALpha or ifCritical or ifTransparent);
   292 					tmpsurf:= LoadImage(Pathz[AltPath] + '/' + FileName, ifALpha or ifCritical or ifTransparent);
   289 				end;
   293 				end;