gdi32: Relax the gm.gmCellIncX comparison

Dmitry Timoshkov dmitry at codeweavers.com
Mon Jul 21 03:15:16 CDT 2008


Hello,

this patch fixes the +1/-1 test failure observed on some Windows platforms
reported by James Hawkins.

Changelog:
    gdi32: Relax the gm.gmCellIncX comparison.
---
 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 d143949..ad99a4d 100644
--- a/dlls/gdi32/tests/font.c
+++ b/dlls/gdi32/tests/font.c
@@ -514,7 +514,7 @@ static void test_outline_font(void)
     pt.x = width_orig; pt.y = 0;
     LPtoDP(hdc, &pt, 1);
     ok(gm.gmCellIncX == pt.x/2, "incX %d != %d\n", gm.gmCellIncX, pt.x/2);
-    ok(gm.gmCellIncX == 10 * width_orig, "incX %d != %d\n", gm.gmCellIncX, 10 * width_orig);
+    ok(near_match(gm.gmCellIncX, 10 * width_orig), "incX %d != %d\n", gm.gmCellIncX, 10 * width_orig);
     ok(gm.gmCellIncY == 0, "incY %d != 0\n", gm.gmCellIncY);
     SelectObject(hdc, old_hfont);
 
-- 
1.5.6.3






More information about the wine-patches mailing list