[WIN32SS] Fix DrawTextExWorker extent for Spotify (#2759)

CORE-16747
This commit is contained in:
Katayama Hirofumi MZ 2020-05-11 18:32:47 +09:00 committed by GitHub
parent 711f631849
commit 97ccef7761
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1266,7 +1266,7 @@ INT WINAPI DrawTextExWorker( HDC hdc,
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);
y = rect->bottom + (invert_y ? size.cy : -size.cy);
#else
if (flags & DT_VCENTER) y = rect->top +
(rect->bottom - rect->top) / 2 - size.cy / 2;