Huw Davies : riched20: Underline links.

Alexandre Julliard julliard at winehq.org
Mon Feb 19 13:52:02 CST 2018


Module: wine
Branch: master
Commit: ec2bcdf279116fdff38f11eb1326116898b21d4a
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=ec2bcdf279116fdff38f11eb1326116898b21d4a

Author: Huw Davies <huw at codeweavers.com>
Date:   Mon Feb 19 09:36:02 2018 +0000

riched20: Underline links.

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/riched20/paint.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c
index d3b908a..fcc4e10 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)
     {




More information about the wine-cvs mailing list