Use uniformsizing theme property.
This commit is contained in:
parent
0a7a7a7efb
commit
1c97e56fa9
|
@ -398,6 +398,7 @@ HRESULT UXTHEME_DrawImageBackground(HTHEME hTheme, HDC hdc, int iPartId,
|
||||||
srcSize.x = rcSrc.right-rcSrc.left;
|
srcSize.x = rcSrc.right-rcSrc.left;
|
||||||
srcSize.y = rcSrc.bottom-rcSrc.top;
|
srcSize.y = rcSrc.bottom-rcSrc.top;
|
||||||
|
|
||||||
|
GetThemeBool(hTheme, iPartId, iStateId, TMT_UNIFORMSIZING, &uniformsizing);
|
||||||
if(uniformsizing) {
|
if(uniformsizing) {
|
||||||
/* Scale height and width equally */
|
/* Scale height and width equally */
|
||||||
int widthDiff = abs(srcSize.x-dstSize.x);
|
int widthDiff = abs(srcSize.x-dstSize.x);
|
||||||
|
|
Loading…
Reference in New Issue