mirror of
https://github.com/reactos/wine.git
synced 2025-02-13 16:59:37 +00:00
Changed the default transparent color in case none was explicitly
specified from the upper left pixel color to magenta. Empirically gives better results.
This commit is contained in:
parent
b25fa587a7
commit
204f32eae2
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user