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:
parent
f85d362c9f
commit
6f50d36b00
1 changed files with 4 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue