[PATCH v2 0/1] MR10816: Draft: gdiplus/test: Fix Font test
-- v2: gdiplus/test: Fix Font test https://gitlab.winehq.org/wine/wine/-/merge_requests/10816
From: Bartosz Kosiorek <gang65@poczta.onet.pl> --- dlls/gdiplus/tests/font.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dlls/gdiplus/tests/font.c b/dlls/gdiplus/tests/font.c index 1bbb18f4c6d..b6b3277599a 100644 --- a/dlls/gdiplus/tests/font.c +++ b/dlls/gdiplus/tests/font.c @@ -1061,6 +1061,7 @@ static void test_font_transform(void) GpStringFormat *format, *typographic; PointF pos[1] = { { 0,0 } }; REAL height, margin_y; + const REAL emSize = 120.0f; RectF bounds, rect; hdc = CreateCompatibleDC(0); @@ -1077,12 +1078,12 @@ static void test_font_transform(void) memset(&lf, 0, sizeof(lf)); lstrcpyA(lf.lfFaceName, "Tahoma"); - lf.lfHeight = -100; - lf.lfWidth = 100; + lf.lfHeight = -emSize; + lf.lfWidth = emSize; status = GdipCreateFontFromLogfontA(hdc, &lf, &font); expect(Ok, status); - margin_y = 100.0 / 8.0; + margin_y = emSize / 8.0f; /* identity matrix */ status = GdipCreateMatrix(&matrix); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10816
participants (2)
-
Bartosz Kosiorek -
Bartosz Kosiorek (@gang65)