From: Zhiyi Zhang <zzhang(a)codeweavers.com> Manual tests on XP show that ipaddress controls don't use the text colors in the theme file to draw dots and the system window text color should be used instead. In fact, there is no text color property for the ETS_NORMAL state in the theme file. This fixes the wrong color for the dots in ipaddress controls. --- dlls/comctl32/ipaddress.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/dlls/comctl32/ipaddress.c b/dlls/comctl32/ipaddress.c index 6931574787c..4e194af1c57 100644 --- a/dlls/comctl32/ipaddress.c +++ b/dlls/comctl32/ipaddress.c @@ -147,18 +147,6 @@ static int IPADDRESS_GetThemeTextState (const IPADDRESS_INFO *infoPtr) static void IPADDRESS_GetTextColors (const IPADDRESS_INFO *infoPtr, COLORREF *background_color, COLORREF *foreground_color) { -#if __WINE_COMCTL32_VERSION == 6 - HTHEME theme = GetWindowTheme(infoPtr->Self); - - if (theme) - { - int state = IPADDRESS_GetThemeTextState(infoPtr); - GetThemeColor(theme, EP_EDITTEXT, state, TMT_FILLCOLOR, background_color); - GetThemeColor(theme, EP_EDITTEXT, state, TMT_TEXTCOLOR, foreground_color); - return; - } -#endif - if (infoPtr->Enabled) { *background_color = comctl32_color.clrWindow; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9435