Alexandre Julliard : gdi32/tests: Allow some more rounding errors in glyph sizes.
Alexandre Julliard
julliard at winehq.org
Fri Aug 1 05:33:43 CDT 2008
Module: wine
Branch: master
Commit: 680233f23568dcc372812ad9af020009a68565e4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=680233f23568dcc372812ad9af020009a68565e4
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Jul 31 17:16:50 2008 +0200
gdi32/tests: Allow some more rounding errors in glyph sizes.
---
dlls/gdi32/tests/font.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c
index 9e8f408..f305b3a 100644
--- a/dlls/gdi32/tests/font.c
+++ b/dlls/gdi32/tests/font.c
@@ -533,7 +533,7 @@ static void test_outline_font(void)
trace("gm.gmCellIncX %d, width_orig %d\n", gm.gmCellIncX, width_orig);
pt.x = width_orig; pt.y = 0;
LPtoDP(hdc, &pt, 1);
- ok(gm.gmCellIncX == pt.x, "incX %d != %d\n", gm.gmCellIncX, pt.x);
+ ok(near_match(gm.gmCellIncX, pt.x), "incX %d != %d\n", gm.gmCellIncX, pt.x);
ok(gm.gmCellIncY == 0, "incY %d != 0\n", gm.gmCellIncY);
/* with a custom matrix */
memset(&gm, 0, sizeof(gm));
@@ -543,7 +543,7 @@ static void test_outline_font(void)
trace("gm.gmCellIncX %d, width_orig %d\n", gm.gmCellIncX, width_orig);
pt.x = width_orig; pt.y = 0;
LPtoDP(hdc, &pt, 1);
- ok(gm.gmCellIncX == (pt.x + 1)/2, "incX %d != %d\n", gm.gmCellIncX, (pt.x + 1)/2);
+ ok(near_match(gm.gmCellIncX, (pt.x + 1)/2), "incX %d != %d\n", gm.gmCellIncX, (pt.x + 1)/2);
ok(gm.gmCellIncY == 0, "incY %d != 0\n", gm.gmCellIncY);
SelectObject(hdc, old_hfont);
More information about the wine-cvs
mailing list