Whatever TrueSizeStretchMark is for - it's not what Wine uxtheme used

it for. Native uxtheme always stretches "truesize" parts when the
destination is smaller than the part image size, but
TrueSizeStretchMark doesn't seem to have an influence.
This commit is contained in:
Frank Richter 2005-08-15 10:21:40 +00:00 committed by Alexandre Julliard
parent f1184b466d
commit 6451a1495a
1 changed files with 6 additions and 0 deletions

View File

@ -478,8 +478,14 @@ static HRESULT get_image_part_size (HTHEME hTheme, HDC hdc, int iPartId,
}
}
}
/* Whatever TrueSizeStretchMark does - it does not seem to
* be what's outlined below. It appears as if native
* uxtheme always stretches if dest is smaller than source
* (ie as if TrueSizeStretchMark==100 with the code below) */
#if 0
/* Only stretch when target exceeds source by truesizestretchmark percent */
GetThemeInt(hTheme, iPartId, iStateId, TMT_TRUESIZESTRETCHMARK, &truesizestretchmark);
#endif
if(dstSize.x < 0 || dstSize.y < 0 ||
(MulDiv(srcSize.x, 100, dstSize.x) > truesizestretchmark &&
MulDiv(srcSize.y, 100, dstSize.y) > truesizestretchmark)) {