1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Projucer: Fix bug where the small icon was used to generate xcassets

This commit is contained in:
reuk 2020-08-03 15:06:20 +01:00
parent f85d362c9f
commit 6f50d36b00
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -363,13 +363,14 @@ namespace build_tools
static void createiOSIconFiles (const Icons& icons, File appIconSet)
{
const auto images = asArray (icons);
auto* imageToUse = icons.big != nullptr ? icons.big.get()
: icons.small.get();
if (! images.isEmpty())
if (imageToUse != nullptr)
{
for (auto& type : iOSAppIconTypes)
{
auto image = rescaleImageForIcon (*images.getFirst(), type.size);
auto image = rescaleImageForIcon (*imageToUse, type.size);
if (image.hasAlphaChannel())
{