Browse Source

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

tags/2021-05-28
reuk 5 years ago
parent
commit
6f50d36b00
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      extras/Build/juce_build_tools/utils/juce_Icons.cpp

+ 4
- 3
extras/Build/juce_build_tools/utils/juce_Icons.cpp 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())
{


Loading…
Cancel
Save