Huw Davies : gdi32:
GetTextExtentPoint and GetTextExtentExPoint behave differently if
there' s a \n in the string.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Sep 20 13:27:05 CDT 2006
Module: wine
Branch: master
Commit: 8b368b9cee916e6c803f0fa00744ee47b7259675
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=8b368b9cee916e6c803f0fa00744ee47b7259675
Author: Huw Davies <huw at codeweavers.com>
Date: Wed Sep 20 14:02:36 2006 +0100
gdi32: GetTextExtentPoint and GetTextExtentExPoint behave differently if there's a \n in the string.
---
dlls/gdi/tests/font.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/dlls/gdi/tests/font.c b/dlls/gdi/tests/font.c
index 57d097b..beb7436 100644
--- a/dlls/gdi/tests/font.c
+++ b/dlls/gdi/tests/font.c
@@ -381,8 +381,13 @@ static void test_text_extents(void)
if the extents array is untouched. */
GetTextExtentExPointW(hdc, wt, len, 32767, &fit1, extents, &sz1);
GetTextExtentPointW(hdc, wt, len, &sz2);
- ok(sz1.cx == sz2.cx && sz1.cy == sz2.cy,
- "results from GetTextExtentExPointW and GetTextExtentPointW differ\n");
+ ok(sz1.cy == sz2.cy,
+ "cy from GetTextExtentExPointW (%ld) and GetTextExtentPointW (%ld) differ\n", sz1.cy, sz2.cy);
+todo_wine {
+ /* The \n in the string is apparently handled differently in GetTextExtentPoint and GetTextExtentExPoint */
+ ok(sz1.cx != sz2.cx,
+ "cx from GetTextExtentExPointW (%ld) and GetTextExtentPointW (%ld) are the same\n", sz1.cx, sz2.cx);
+ }
for (i = 1; i < len; ++i)
ok(extents[i-1] <= extents[i],
"GetTextExtentExPointW generated a non-increasing sequence of partial extents (at position %d)\n",
More information about the wine-cvs
mailing list