From 5d282ec64d1ad815586adcd57ff494b524ed1064 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 8 Oct 2018 13:20:36 +0200 Subject: [PATCH] user32: Use height from font metrics for empty text runs in TabbedTextOut(). Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=39051 Signed-off-by: Alexandre Julliard --- dlls/user32/text.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dlls/user32/text.c b/dlls/user32/text.c index 118dbeb5591..9601c60da13 100644 --- a/dlls/user32/text.c +++ b/dlls/user32/text.c @@ -1385,7 +1385,9 @@ static LONG TEXT_TabbedTextOut( HDC hdc, INT x, INT y, LPCWSTR lpstr, } } else x += extent.cx; - + + if (!extent.cy) extent.cy = tm.tmHeight; + if (fDisplayText) { r.top = y; @@ -1398,9 +1400,6 @@ static LONG TEXT_TabbedTextOut( HDC hdc, INT x, INT y, LPCWSTR lpstr, lpstr += j; } - if(!extent.cy) - extent.cy = tm.tmHeight; - return MAKELONG(x - start, extent.cy); }