Commit 1c97e56f authored by Kevin Koltzau's avatar Kevin Koltzau Committed by Alexandre Julliard

Use uniformsizing theme property.

parent 0a7a7a7e
......@@ -398,6 +398,7 @@ HRESULT UXTHEME_DrawImageBackground(HTHEME hTheme, HDC hdc, int iPartId,
srcSize.x = rcSrc.right-rcSrc.left;
srcSize.y = rcSrc.bottom-rcSrc.top;
GetThemeBool(hTheme, iPartId, iStateId, TMT_UNIFORMSIZING, &uniformsizing);
if(uniformsizing) {
/* Scale height and width equally */
int widthDiff = abs(srcSize.x-dstSize.x);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment