Hi there,<br><br>here are 4 improvements for DrawIconEx in &quot;dlls/user32/cursoricon.c&quot;.<br>The testsuite passes after applying each patch, as long as they are applied<br>in correct order:<br><br>1.) Fix for Bug <a href="http://bugs.winehq.org/show_bug.cgi?id=20145">http://bugs.winehq.org/show_bug.cgi?id=20145</a><br>
Only changed hierarchy of if statements to get monochrome 1 bpp icons into the &quot;correct&quot; <br>branch which doesn&#39;t compute alpha blending.<br><br>2.) Extremely small change to make a &quot;wine todo&quot; test pass<br>
Changed rendering flag for BitBlt<br>Remove &quot;wine todo&quot; from corresponding test<br><br>3.) Another small change to make the remaining two &quot;wine todo&quot; tests of DrawIconEx pass<br>Changed rendering flag to depend on DI_MASK flag<br>
Remove &quot;wine todo&quot; from both corresponding tests<br><br>4.) Replacing the DrawIcon implementation with now equivalent call to DrawIconEx <br>(as suggested by <a href="http://msdn.microsoft.com/en-us/library/ms648065(VS.85).aspx">http://msdn.microsoft.com/en-us/library/ms648065(VS.85).aspx</a> ), <br>
therefore eliminating lots of duplicated code.<br><br>Best regards,<br><br><br>Wilfried Pasquazzo<br><br><br>