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 <julliard@winehq.org>
oldstable
Alexandre Julliard 2018-10-08 13:20:36 +02:00
parent ccb89fc67a
commit 5d282ec64d
1 changed files with 3 additions and 4 deletions

View File

@ -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);
}