mirror of
https://github.com/reactos/reactos.git
synced 2024-09-12 22:02:18 +00:00
66397a3a3f
- fix a test name - comment out more tests for EngReleaseSemaphore, they cause heap corruption on ros - convert more TEST -> RTEST svn path=/trunk/; revision=33994
28 lines
575 B
C
28 lines
575 B
C
LONG STDCALL GdiGetCharDimensions(HDC, LPTEXTMETRICW, LONG *);
|
|
|
|
INT
|
|
Test_GdiGetCharDimensions(PTESTINFO pti)
|
|
{
|
|
LOGFONT logfont = {-11, 0, 0, 0, 400,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
"MS Shell Dlg 2"};
|
|
HFONT hFont, hOldFont;
|
|
HDC hDC;
|
|
LONG x,y;
|
|
TEXTMETRICW tm;
|
|
|
|
hFont = CreateFontIndirect(&logfont);
|
|
hDC = CreateCompatibleDC(NULL);
|
|
hOldFont = SelectObject(hDC, hFont);
|
|
|
|
x = GdiGetCharDimensions(hDC, &tm, &y);
|
|
|
|
RTEST(y == tm.tmHeight);
|
|
|
|
SelectObject(hDC, hOldFont);
|
|
DeleteObject(hFont);
|
|
DeleteDC(hDC);
|
|
|
|
return APISTATUS_NORMAL;
|
|
}
|