[PATCH] uxtheme: Resize source image if destination smaller than margins.

Mark Harmstone hellas at burntcomma.com
Tue Apr 14 16:12:01 CDT 2015

In DrawImageBackground, if the sizing margins are larger than the destination rect, Wine
overlays one of the margins with the other. This patch changes the behaviour so that in this
case it resizes both the source image and the margins proportionally, rather than
favouring one arbitrarily.

For an example of this, try rendering the Win7 Aero menubar background at a height of 20 - on
Windows it is still a smooth gradient, while on Wine it's all blocky.

 dlls/uxtheme/draw.c | 34 ++++++++++++++++++++++++++++++++--
 1 file changed, 32 insertions(+), 2 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-uxtheme-Resize-source-image-if-destination-smaller-t.patch
Type: text/x-patch
Size: 2343 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150414/6b74e470/attachment.bin>

More information about the wine-patches mailing list