mirror of
https://github.com/reactos/reactos.git
synced 2024-08-01 00:58:16 +00:00
better stub for EnumFonts (fixed license agreement in ClamWin installer)
svn path=/trunk/; revision=19250
This commit is contained in:
parent
06855e5b33
commit
6acde9bc12
|
@ -32,41 +32,6 @@ DeviceCapabilitiesExA(
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @unimplemented
|
|
||||||
*/
|
|
||||||
int
|
|
||||||
STDCALL
|
|
||||||
EnumFontsA (
|
|
||||||
HDC hDC,
|
|
||||||
LPCSTR lpFaceName,
|
|
||||||
FONTENUMPROCA FontFunc,
|
|
||||||
LPARAM lParam
|
|
||||||
)
|
|
||||||
{
|
|
||||||
UNIMPLEMENTED;
|
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
||||||
return 0;
|
|
||||||
#if 0
|
|
||||||
NTSTATUS Status;
|
|
||||||
LPWSTR lpFaceNameW;
|
|
||||||
int rc = 0;
|
|
||||||
|
|
||||||
Status = HEAP_strdupA2W ( &lpFaceNameW, lpFaceName );
|
|
||||||
if (!NT_SUCCESS (Status))
|
|
||||||
SetLastError (RtlNtStatusToDosError(Status));
|
|
||||||
else
|
|
||||||
{
|
|
||||||
rc = NtGdiEnumFonts ( hDC, lpFaceNameW, FontFunc, lParam );
|
|
||||||
|
|
||||||
HEAP_free ( lpFaceNameW );
|
|
||||||
}
|
|
||||||
return rc;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @unimplemented
|
* @unimplemented
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -40,29 +40,6 @@ DeviceCapabilitiesExW(
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @unimplemented
|
|
||||||
*/
|
|
||||||
int
|
|
||||||
STDCALL
|
|
||||||
EnumFontsW(
|
|
||||||
HDC hDC,
|
|
||||||
LPCWSTR lpFaceName,
|
|
||||||
FONTENUMPROCW FontFunc,
|
|
||||||
LPARAM lParam
|
|
||||||
)
|
|
||||||
{
|
|
||||||
#if 0
|
|
||||||
return NtGdiEnumFonts ( hDC, lpFaceName, FontFunc, lParam );
|
|
||||||
#else
|
|
||||||
UNIMPLEMENTED;
|
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
||||||
return 0;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @unimplemented
|
* @unimplemented
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -834,3 +834,58 @@ GdiGetCharDimensions(HDC hdc, LPTEXTMETRICW lptm, DWORD *height)
|
||||||
return (sz.cx / 26 + 1) / 2;
|
return (sz.cx / 26 + 1) / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @unimplemented
|
||||||
|
*/
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
EnumFontsW(
|
||||||
|
HDC hDC,
|
||||||
|
LPCWSTR lpFaceName,
|
||||||
|
FONTENUMPROCW FontFunc,
|
||||||
|
LPARAM lParam
|
||||||
|
)
|
||||||
|
{
|
||||||
|
#if 0
|
||||||
|
return NtGdiEnumFonts ( hDC, lpFaceName, FontFunc, lParam );
|
||||||
|
#else
|
||||||
|
return EnumFontFamiliesW( hDC, lpFaceName, FontFunc, lParam );
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @unimplemented
|
||||||
|
*/
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
EnumFontsA (
|
||||||
|
HDC hDC,
|
||||||
|
LPCSTR lpFaceName,
|
||||||
|
FONTENUMPROCA FontFunc,
|
||||||
|
LPARAM lParam
|
||||||
|
)
|
||||||
|
{
|
||||||
|
#if 0
|
||||||
|
NTSTATUS Status;
|
||||||
|
LPWSTR lpFaceNameW;
|
||||||
|
int rc = 0;
|
||||||
|
|
||||||
|
Status = HEAP_strdupA2W ( &lpFaceNameW, lpFaceName );
|
||||||
|
if (!NT_SUCCESS (Status))
|
||||||
|
SetLastError (RtlNtStatusToDosError(Status));
|
||||||
|
else
|
||||||
|
{
|
||||||
|
rc = NtGdiEnumFonts ( hDC, lpFaceNameW, FontFunc, lParam );
|
||||||
|
|
||||||
|
HEAP_free ( lpFaceNameW );
|
||||||
|
}
|
||||||
|
return rc;
|
||||||
|
#else
|
||||||
|
return EnumFontFamiliesA( hDC, lpFaceName, FontFunc, lParam );
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue