Re: Fix for tclkit custom icon replacement NOT FOUND error, final solution
Jean-Claude Wippler <[email protected]> Sat, 6 Mar 2010 00:21:22 +0100
| Newsgroups | gmane.comp.lang.tcl.starkit |
|---|---|
| Message-ID | <[email protected]> |
On 5 Mar 2010, at 19:25, Patrick wrote:
> posting here as well as comp.lang.tcl. Created a issue as well.
>
> I know this has been an ongoing issue, I finally rolled up my sleeves
> and dug into the sdx code. I figured out what the underlying problem
> and solution is for replacing custom icons using tclkit / sdx to wrap
> starkits. Pat Thoyts, please consider putting this fix in the sdx code
> as soon as you can.
[...]
> The solution:
>
> 1. unwrap sdx.kit
> 2. navigate to the wrap.tcl file
> 3. in the procedure decICO, change the line
> lappend result ${w}x${h}/$cc $image
> to
> lappend result ${w}x${h}/$bc $image
>
> (bc is the bits per pixel ... http://en.wikipedia.org/wiki/ICO_%28file_format%29
> ). We'll use the bits per pixel as part of the array index as opposed
> to the number of colors.
>
> 4. rewrap sdx.kit
> 5. rewrap your application.
Wow, a one-character change which has had us baffled for years!
> I hope this ends this longstanding issue once and for all. Pat, please
> let me know what you think.
I'm not Pat, but I'll try to save him some work for a change...
I've updated the svn repository. Thank you very much for chasing and solving this problem!
-jcw
--
You received this message because you are subscribed to the "starkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/starkit?hl=en