hedgewars/uStore.pas
changeset 8039 a3b86c1f63b4
parent 8027 e5ba3dd12531
child 8057 93e16240f178
equal deleted inserted replaced
8036:89740f927254 8039:a3b86c1f63b4
   574     end;
   574     end;
   575 
   575 
   576     if ((imageFlags and ifIgnoreCaps) = 0) and ((tmpsurf^.w > MaxTextureSize) or (tmpsurf^.h > MaxTextureSize)) then
   576     if ((imageFlags and ifIgnoreCaps) = 0) and ((tmpsurf^.w > MaxTextureSize) or (tmpsurf^.h > MaxTextureSize)) then
   577     begin
   577     begin
   578         SDL_FreeSurface(tmpsurf);
   578         SDL_FreeSurface(tmpsurf);
   579         OutError(msgFailedSize, (imageFlags and ifCritical) <> 0);
   579         OutError(msgFailedSize, ((not cOnlyStats) and ((imageFlags and ifCritical) <> 0)));
   580         // dummy surface to replace non-critical textures that failed to load due to their size
   580         // dummy surface to replace non-critical textures that failed to load due to their size
   581         LoadImage:= SDL_CreateRGBSurface(SDL_SWSURFACE, 2, 2, 32, RMask, GMask, BMask, AMask);
   581         LoadImage:= SDL_CreateRGBSurface(SDL_SWSURFACE, 2, 2, 32, RMask, GMask, BMask, AMask);
   582         exit;
   582         exit;
   583     end;
   583     end;
   584 
   584