https://git.reactos.org/?p=reactos.git;a=commitdiff;h=97ccef77616ca2a2c31d8…
commit 97ccef77616ca2a2c31d8ea1d46d3a045e13cbf1
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Mon May 11 18:32:47 2020 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Mon May 11 18:32:47 2020 +0900
[WIN32SS] Fix DrawTextExWorker extent for Spotify (#2759)
CORE-16747
---
win32ss/user/rtl/text.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/win32ss/user/rtl/text.c b/win32ss/user/rtl/text.c
index 061e49b6d5e..0ab3f00ea31 100644
--- a/win32ss/user/rtl/text.c
+++ b/win32ss/user/rtl/text.c
@@ -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;