[PATCH 3/3] riched20: Underline links.

Huw Davies huw at codeweavers.com
Mon Feb 19 03:36:02 CST 2018


Signed-off-by: Huw Davies <huw at codeweavers.com>
---
 dlls/riched20/paint.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c
index d3b908a7f3..fcc4e105a3 100644
--- a/dlls/riched20/paint.c
+++ b/dlls/riched20/paint.c
@@ -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)
     {
-- 
2.12.0




More information about the wine-devel mailing list