Alexandre Julliard : gdiplus/tests: Tweak some metrics to make the tests pass on Wine.
Alexandre Julliard
julliard at winehq.org
Mon Dec 10 14:00:38 CST 2012
Module: wine
Branch: master
Commit: fa664b548ee96dafdfc8c186ab43300a679bd5b2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fa664b548ee96dafdfc8c186ab43300a679bd5b2
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Dec 10 11:54:58 2012 +0100
gdiplus/tests: Tweak some metrics to make the tests pass on Wine.
---
dlls/gdiplus/tests/graphics.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/gdiplus/tests/graphics.c b/dlls/gdiplus/tests/graphics.c
index 42612dd..fdea646 100644
--- a/dlls/gdiplus/tests/graphics.c
+++ b/dlls/gdiplus/tests/graphics.c
@@ -3055,7 +3055,7 @@ static void test_string_functions(void)
expect(3, linesfilled);
/* Cut off everything including the first space. */
- rc.Width = char_bounds.Width + char_width * 1.5;
+ rc.Width = char_bounds.Width + char_width * 1.7;
status = GdipMeasureString(graphics, teststring, 6, font, &rc, NULL, &bounds, &codepointsfitted, &linesfilled);
expect(Ok, status);
@@ -3067,7 +3067,7 @@ static void test_string_functions(void)
expect(3, linesfilled);
/* Cut off everything after the first character. */
- rc.Width = char_bounds.Width + char_width * 0.5;
+ rc.Width = char_bounds.Width + char_width * 0.8;
status = GdipMeasureString(graphics, teststring, 6, font, &rc, NULL, &bounds, &codepointsfitted, &linesfilled);
expect(Ok, status);
More information about the wine-cvs
mailing list