AmiDock Docky icon and Composition Effect OFF

This forum is for general developer support questions.
Post Reply
User avatar
javierdlr
Beta Tester
Beta Tester
Posts: 389
Joined: Sun Jun 19, 2011 11:13 pm
Location: Donostia (GUIPUZCOA) - Spain
Contact:

AmiDock Docky icon and Composition Effect OFF

Post by javierdlr »

Hi, if WB is using without composition Effect my Mixer docky is rendered wrong (seems using the old image icon image).
When using with Composition Effect ON the docky shows/renders perfectly.

Has anyone a clu how to solve it?

Code: Select all

..
aii.iconType = APPICONT_Docky;
aii.info.dockyBase = DockyBase;
..
case DOCKYGET_RenderMode:
 *msgData = DOCKYRENDERMODE_Icon;
break;

case DOCKYGET_Icon:
 *((struct DiskObject **)msgData) = GetDiskObject(mixerfullpath);
break;
..

Changing to 'aii.iconType = APPICONT_ProgamIcon;' (alas no docky functionality, not what I want) the icon shows good on booth Composition Effect ON/OFF cases.

TIA
User avatar
thomasrapp
Posts: 318
Joined: Sun Jun 19, 2011 12:22 am

Re: AmiDock Docky icon and Composition Effect OFF

Post by thomasrapp »

Try GetIconTags instead of GetDiskObject. It's a stupid restriction of icon.library that it does not store the new style icon if a program uses GetDiskObject.
User avatar
javierdlr
Beta Tester
Beta Tester
Posts: 389
Joined: Sun Jun 19, 2011 11:13 pm
Location: Donostia (GUIPUZCOA) - Spain
Contact:

Re: AmiDock Docky icon and Composition Effect OFF

Post by javierdlr »

thomasrapp wrote:Try GetIconTags instead of GetDiskObject. It's a stupid restriction of icon.library that it does not store the new style icon if a program uses GetDiskObject.
Sorry for delay :-)

YES, changing to

Code: Select all

   *((struct DiskObject **)msgData) = GetIconTags(mixerfullpath, ICONGETA_FailIfUnavailable,FALSE, TAG_END);
Fixes the wrong remaping of the icon if Composition Effects disabled.
zillion THX mate!!!! :-D
kas1e
Beta Tester
Beta Tester
Posts: 543
Joined: Sat Jun 18, 2011 8:56 am
Contact:

Re: AmiDock Docky icon and Composition Effect OFF

Post by kas1e »

@all
I create BZ about fixing that restriction, but it was said by devs its not a bug, but should be like this. So, nothing can be done then.
Post Reply