Fix winemenubuilder icon extraction

Maxime Bellengé maxime.bellenge at wanadoo.fr
Sat Aug 20 08:57:30 CDT 2005


With the current code, if you have icons in an .exe file with the
following scheme for example :

id:0 bits:4 h:16 w:16
id:1 bits:8 h:16 w:16
id:2 bits:4 h:32 w:32
id:3 bits:8 h:32 w:32
id:4 bits:4 h:48 w:48
id:5 bits:8 h:48 w:48

The last icon could never be selected whereas it is the best one. This
patch no longer separates bits and width/height for choosing which icon
to take. Thus the best icon can now be chosen.

Maxime

ChangeLog:
   * Make the icon choice algorithm really choose the best icon.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winemenubuilder.patch
Type: text/x-patch
Size: 1699 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050820/b55f8f32/winemenubuilder.bin


More information about the wine-patches mailing list