riched20: Underline links.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2018-02-19 09:36:02 +00:00 committed by Alexandre Julliard
parent 08c15246ca
commit ec2bcdf279

View file

@ -218,6 +218,9 @@ static COLORREF get_back_color( ME_Context *c, ME_Style *style, BOOL highlight )
static HPEN get_underline_pen( ME_Style *style, COLORREF color )
{
if (style->fmt.dwEffects & CFE_LINK)
return CreatePen( PS_SOLID, 1, color );
/* Choose the pen type for underlining the text. */
if (style->fmt.dwEffects & CFE_UNDERLINE)
{