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>
This commit is contained in:
parent
ccb89fc67a
commit
5d282ec64d
|
@ -1386,6 +1386,8 @@ static LONG TEXT_TabbedTextOut( HDC hdc, INT x, INT y, LPCWSTR lpstr,
|
||||||
} else
|
} else
|
||||||
x += extent.cx;
|
x += extent.cx;
|
||||||
|
|
||||||
|
if (!extent.cy) extent.cy = tm.tmHeight;
|
||||||
|
|
||||||
if (fDisplayText)
|
if (fDisplayText)
|
||||||
{
|
{
|
||||||
r.top = y;
|
r.top = y;
|
||||||
|
@ -1398,9 +1400,6 @@ static LONG TEXT_TabbedTextOut( HDC hdc, INT x, INT y, LPCWSTR lpstr,
|
||||||
lpstr += j;
|
lpstr += j;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!extent.cy)
|
|
||||||
extent.cy = tm.tmHeight;
|
|
||||||
|
|
||||||
return MAKELONG(x - start, extent.cy);
|
return MAKELONG(x - start, extent.cy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue