Fix loading icon from resource

Maxime Bellengé maxime.bellenge at laposte.net
Tue Apr 29 04:34:30 CDT 2003


Some icons were not loaded correctly sometimes. I found it came from the
fact we must use the wBitCount field of CURSORICONDIRENTRY instead of
the bColorCount. 
Actually, bColorCount is 0 if >=8bpp (see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwui/html/msdn_icons.asp )

Now all the icon in the tabs are displayed correctly in emule :) (and in
many other apps I think).

a+

Max

ChangeLog:
   * Fix some indentation
   * Fix the loading of icon resources 
-- 
Maxime Bellengé <maxime.bellenge at laposte.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cursoricon.patch
Type: text/x-patch
Size: 1947 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20030429/b1463cd8/cursoricon.bin


More information about the wine-patches mailing list