Use uniformsizing theme property.

This commit is contained in:
Kevin Koltzau 2005-05-24 09:49:29 +00:00 committed by Alexandre Julliard
parent 0a7a7a7efb
commit 1c97e56fa9
1 changed files with 1 additions and 0 deletions

View File

@ -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);