gdiplus: Implement GdipGetCellDescent.

oldstable
Adam Petaccia 2008-07-03 14:26:57 -04:00 committed by Alexandre Julliard
parent 6fabc90219
commit e96b07d73f
2 changed files with 4 additions and 9 deletions

View File

@ -526,13 +526,14 @@ GpStatus WINGDIPAPI GdipGetCellAscent(GDIPCONST GpFontFamily *family,
return Ok;
}
GpStatus WINGDIPAPI GdipGetCellDescent(GDIPCONST GpFontFamily *family, INT style, UINT16 * CellDescent)
GpStatus WINGDIPAPI GdipGetCellDescent(GDIPCONST GpFontFamily *family,
INT style, UINT16* CellDescent)
{
if (!(family && CellDescent)) return InvalidParameter;
FIXME("stub!\n");
*CellDescent = family->tmw.tmDescent;
return NotImplemented;
return Ok;
}
/*******************************************************************************

View File

@ -214,11 +214,8 @@ todo_wine
expect(Ok, stat);
ok(result == 1854, "Expected 1854, got %d\n", result);
result = 0;
todo_wine
{
stat = GdipGetCellDescent(FontFamily, FontStyleRegular, &result);
ok(result == 434, "Expected 434, got %d\n", result);
}
GdipDeleteFontFamily(FontFamily);
GdipCreateFontFamilyFromName(TimesNewRoman, NULL, &FontFamily);
@ -238,11 +235,8 @@ todo_wine
expect(Ok, stat);
ok(result == 1825, "Expected 1825, got %d\n", result);
result = 0;
todo_wine
{
stat = GdipGetCellDescent(FontFamily, FontStyleRegular, &result);
ok(result == 443, "Expected 443 got %d\n", result);
}
GdipDeleteFontFamily(FontFamily);
}