From 6451a1495a34696f1038c4f4ac67ab27fa5cab07 Mon Sep 17 00:00:00 2001 From: Frank Richter Date: Mon, 15 Aug 2005 10:21:40 +0000 Subject: [PATCH] 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. --- dlls/uxtheme/draw.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/uxtheme/draw.c b/dlls/uxtheme/draw.c index 20e4992ae9e..86d9478b92d 100644 --- a/dlls/uxtheme/draw.c +++ b/dlls/uxtheme/draw.c @@ -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)) {