Saving PNG Project icons with Iconic

Discuss about plugins that don't have a dedicated forum
Post Reply
User avatar
jPV
Posts: 604
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Saving PNG Project icons with Iconic

Post by jPV »

PNG icons can't be saved as a Project icon unless you provide a DefaultTool. It's inconsistent with other icon formats, which do change the Type even without providing the DefaultTool option. Tested on MorphOS.

Code: Select all

@REQUIRE "iconic"
CreateBrush(1, 64, 64, #BLUE)
CreateIcon(1, {{Type=#BRUSH, Image=1}})
SetIconProperties(1, {Type=#AMIGAICON_PROJECT, ToolTypes={{Key="TEST", Value="0"}}})
; SetIconProperties(1, {DefaultTool=""}) ; This is a work-around
SaveIcon(1, "ram:testPNG.info", #ICNFMT_PNG)       ; Type is wrong (Tool), ToolTypes are OK
SaveIcon(1, "ram:testOS4.info", #ICNFMT_AMIGAOS) ; Type is OK (Project), ToolTypes are OK
User avatar
airsoftsoftwair
Posts: 5450
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Saving PNG Project icons with Iconic

Post by airsoftsoftwair »

Right, this is clearly a bug. Will be fixed.
Post Reply