gdi32: Relax another gm.gmCellIncX test

Dmitry Timoshkov dmitry at codeweavers.com
Thu Jul 31 08:09:25 CDT 2008


Hello,

this patch fixes one more spurious off by 1 error reported at test.winehq.org.

Changelog:
    gdi32: Relax another gm.gmCellIncX 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 9e8f408..0c94e35 100644
--- a/dlls/gdi32/tests/font.c
+++ b/dlls/gdi32/tests/font.c
@@ -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);
 
-- 
1.5.6.4






More information about the wine-patches mailing list