gdiplus/tests: Tweak some metrics to make the tests pass on Wine.

oldstable
Alexandre Julliard 2012-12-10 11:54:58 +01:00
parent 50835b4151
commit fa664b548e
1 changed files with 2 additions and 2 deletions

View File

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