This commit is contained in:
jimtabor 2019-12-09 11:19:18 -06:00
commit d447b41198
2 changed files with 8 additions and 16 deletions

View file

@ -1263,18 +1263,8 @@ INT WINAPI DrawTextExWorker( HDC hdc,
if (flags & DT_SINGLELINE)
{
#ifdef __REACTOS__
if (flags & DT_VCENTER)
{
if (flags & DT_CALCRECT)
{
if (rect->bottom - rect->top < size.cy / 2)
y = rect->top + (invert_y ? size.cy : -size.cy) / 2;
}
else
{
y = rect->top + (rect->bottom - rect->top + (invert_y ? size.cy : -size.cy)) / 2;
}
}
if (flags & DT_VCENTER) y = rect->top +
(rect->bottom - rect->top + (invert_y ? size.cy : -size.cy)) / 2;
else if (flags & DT_BOTTOM)
y = rect->bottom + (invert_y ? 0 : -size.cy);
#else