Commit b7679da9 authored by Justin Chevrier's avatar Justin Chevrier Committed by Alexandre Julliard

gdiplus: Handle UnitWorld in GdipGetFontHeightGivenDPI.

parent cf5c16c4
......@@ -489,6 +489,7 @@ GpStatus WINGDIPAPI GdipGetFontHeightGivenDPI(GDIPCONST GpFont *font, REAL dpi,
switch (font->unit)
{
case UnitPixel:
case UnitWorld:
*height = font_height;
break;
case UnitPoint:
......
......@@ -381,8 +381,8 @@ static void test_heightgivendpi(void)
stat = GdipCreateFont(fontfamily, 30, FontStyleRegular, UnitWorld, &font);
expect(Ok, stat);
stat = GdipGetFontHeightGivenDPI(font, 96, &height);
todo_wine expect(Ok, stat);
todo_wine expectf((REAL)34.497070, height);
expect(Ok, stat);
expectf((REAL)34.497070, height);
GdipDeleteFont(font);
height = 12345;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment