Commit 204f32ea authored by Frank Richter's avatar Frank Richter Committed by Alexandre Julliard

Changed the default transparent color in case none was explicitly

specified from the upper left pixel color to magenta. Empirically gives better results.
parent b25fa587
......@@ -302,8 +302,8 @@ static HRESULT UXTHEME_DrawImageGlyph(HTHEME hTheme, HDC hdc, int iPartId,
GetThemeBool(hTheme, iPartId, iStateId, TMT_GLYPHTRANSPARENT, &transparent);
if(transparent) {
if(FAILED(GetThemeColor(hTheme, iPartId, iStateId, TMT_GLYPHTRANSPARENTCOLOR, &transparentcolor))) {
/* If image is transparent, but no color was specified, get the color of the upper left corner */
transparentcolor = GetPixel(hdcSrc, 0, 0);
/* If image is transparent, but no color was specified, use magenta */
transparentcolor = RGB(255, 0, 255);
}
}
GetThemeEnumValue(hTheme, iPartId, iStateId, TMT_VALIGN, &valign);
......
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