[PATCH] uxtheme: Draw the correct part of the themed parent background to the DC.

Reece Dunn msclrhd at googlemail.com
Tue Nov 11 18:35:49 CST 2008


The DrawThemeParentBackground function is not correctly rendering the
parent background to the specified DC. This is most noticeable on
property sheets with a theme that uses a gradient bitmap, especially
on tabs like the Graphics tab in winecfg.

The reason these get drawn incorrectly is that the coordinates of the
clip rect and viewport are not correct. The DrawThemeParentBackground
call ends up sending a WM_PRINTCLIENT message to the parent window,
therefore the clip rect and viewport must be relative to the parent
window. The rect (either the clip-to rect or the window rect) are
relative to the window being drawn, and thus need to be mapped
properly by passing the correct arguments to MapWindowPoints.

This resolves several visual anomalys when using themes.

- Reece
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-uxtheme-Draw-the-correct-part-of-the-themed-parent.patch
Type: text/x-patch
Size: 1291 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081112/085731fa/attachment-0001.bin 


More information about the wine-patches mailing list