Commit f5e9a01c authored by Adam Petaccia's avatar Adam Petaccia Committed by Alexandre Julliard

gdiplus: GdipGetFontHeightGivenDPI: Return a valid value for UnitPixel.

parent 74c8117a
...@@ -428,12 +428,22 @@ GpStatus WINGDIPAPI GdipGetFontHeight(GDIPCONST GpFont *font, ...@@ -428,12 +428,22 @@ GpStatus WINGDIPAPI GdipGetFontHeight(GDIPCONST GpFont *font,
*/ */
GpStatus WINGDIPAPI GdipGetFontHeightGivenDPI(GDIPCONST GpFont *font, REAL dpi, REAL *height) GpStatus WINGDIPAPI GdipGetFontHeightGivenDPI(GDIPCONST GpFont *font, REAL dpi, REAL *height)
{ {
TRACE("%p (%s), %f, %p\n", font,
debugstr_w(font->lfw.lfFaceName), dpi, height);
if (!(font && height)) return InvalidParameter; if (!(font && height)) return InvalidParameter;
FIXME("%p (%s), %f, %p\n", font, switch (font->unit)
debugstr_w(font->lfw.lfFaceName), dpi, height); {
case UnitPixel:
*height = font->emSize;
break;
default:
FIXME("Unhandled unit type: %d\n", font->unit);
return NotImplemented;
}
return NotImplemented; return Ok;
} }
/*********************************************************************** /***********************************************************************
......
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