Dmitry Timoshkov : gdi32: Allow a rounding error in the text justification test.
Alexandre Julliard
julliard at winehq.org
Mon Oct 6 09:35:19 CDT 2008
Module: wine
Branch: master
Commit: 0d1470575d4c576b8c48c0cd0ef4bde146fbbeb3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0d1470575d4c576b8c48c0cd0ef4bde146fbbeb3
Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date: Mon Oct 6 22:27:30 2008 +0900
gdi32: Allow a rounding error in the text justification test.
---
dlls/gdi32/tests/font.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c
index 25e0747..bbcdf0b 100644
--- a/dlls/gdi32/tests/font.c
+++ b/dlls/gdi32/tests/font.c
@@ -1344,7 +1344,7 @@ static void testJustification(HDC hdc, PSTR str, RECT *clientArea)
for (e = 0; e < nErrors; e++)
{
- ok(error[e].TabbedTextOutWidth == areaWidth,
+ ok(near_match(error[e].TabbedTextOutWidth, areaWidth),
"The output text (\"%s\") width should be %d, not %d.\n",
error[e].extent, areaWidth, error[e].TabbedTextOutWidth);
/* The width returned by GetTextExtentPoint32() is exactly the same
More information about the wine-cvs
mailing list