Page 1 of 1

AmiDock Docky icon and Composition Effect OFF

Posted: Wed Sep 04, 2013 6:40 pm
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

Re: AmiDock Docky icon and Composition Effect OFF

Posted: Thu Sep 05, 2013 9:56 pm
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.

Re: AmiDock Docky icon and Composition Effect OFF

Posted: Sat Sep 07, 2013 12:43 am
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

Re: AmiDock Docky icon and Composition Effect OFF

Posted: Sat Sep 07, 2013 1:35 pm
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.