equal
deleted
inserted
replaced
916 if (tmpsurf <> nil) then |
916 if (tmpsurf <> nil) then |
917 begin |
917 begin |
918 if ((tmpsurf^.w > MaxTextureSize) or (tmpsurf^.h > MaxTextureSize)) then |
918 if ((tmpsurf^.w > MaxTextureSize) or (tmpsurf^.h > MaxTextureSize)) then |
919 begin |
919 begin |
920 SDL_FreeSurface(tmpsurf); |
920 SDL_FreeSurface(tmpsurf); |
921 WriteLnToConsole('Image too big, trying to load lowres version: ' + s); |
921 AddFileLog('Image too big, trying to load lowres version: ' + s); |
922 tmpsurf:= IMG_Load(Str2PChar(s)) |
922 tmpsurf:= IMG_Load(Str2PChar(s)) |
923 end; |
923 end; |
924 end |
924 end |
925 else |
925 else |
926 begin |
926 begin |
927 WriteLnToConsole('Image not found, trying to load lowres version: ' + s); |
927 AddFileLog('Image not found, trying to load lowres version: ' + s); |
928 tmpsurf:= IMG_Load(Str2PChar(s)) |
928 tmpsurf:= IMG_Load(Str2PChar(s)) |
929 end; |
929 end; |
930 end; |
930 end; |
931 |
931 |
932 if tmpsurf = nil then |
932 if tmpsurf = nil then |