Dmitry Timoshkov : gdi32: Relax the gm.gmCellIncX comparison.

Alexandre Julliard julliard at winehq.org
Mon Jul 21 08:51:54 CDT 2008


Module: wine
Branch: master
Commit: 7976d993f5cbc4e7841edf607f01ce1ec547d122
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7976d993f5cbc4e7841edf607f01ce1ec547d122

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Mon Jul 21 17:15:16 2008 +0900

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);
 




More information about the wine-cvs mailing list