mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
- rename NtGdiGetTextExentExPoint to NtGdiGetTextExtentExW and add 8th parameter (currently unhandled)
svn path=/trunk/; revision=27890
This commit is contained in:
parent
c4aa25f1aa
commit
eb3712b47d
3 changed files with 20 additions and 14 deletions
|
@ -169,8 +169,8 @@ GetTextExtentExPointW(
|
|||
LPSIZE lpSize
|
||||
)
|
||||
{
|
||||
return NtGdiGetTextExtentExPoint (
|
||||
hdc, lpszStr, cchString, nMaxExtent, lpnFit, alpDx, lpSize );
|
||||
return NtGdiGetTextExtentExW (
|
||||
hdc, (LPWSTR)lpszStr, cchString, nMaxExtent, (PULONG)lpnFit, (PULONG)alpDx, lpSize, 0 );
|
||||
}
|
||||
|
||||
|
||||
|
@ -198,8 +198,8 @@ GetTextExtentExPointA(
|
|||
SetLastError (RtlNtStatusToDosError(Status));
|
||||
else
|
||||
{
|
||||
rc = NtGdiGetTextExtentExPoint (
|
||||
hdc, lpszStrW, cchString, nMaxExtent, lpnFit, alpDx, lpSize );
|
||||
rc = NtGdiGetTextExtentExW (
|
||||
hdc, lpszStrW, cchString, nMaxExtent, (PULONG)lpnFit, (PULONG)alpDx, lpSize, 0 );
|
||||
|
||||
HEAP_free ( lpszStrW );
|
||||
}
|
||||
|
|
|
@ -3405,15 +3405,19 @@ TextIntGetTextExtentPoint(PDC dc,
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
W32KAPI
|
||||
BOOL
|
||||
STDCALL
|
||||
NtGdiGetTextExtentExPoint(HDC hDC,
|
||||
LPCWSTR UnsafeString,
|
||||
int Count,
|
||||
int MaxExtent,
|
||||
LPINT UnsafeFit,
|
||||
LPINT UnsafeDx,
|
||||
LPSIZE UnsafeSize)
|
||||
APIENTRY
|
||||
NtGdiGetTextExtentExW(
|
||||
IN HDC hDC,
|
||||
IN OPTIONAL LPWSTR UnsafeString,
|
||||
IN ULONG Count,
|
||||
IN ULONG MaxExtent,
|
||||
OUT OPTIONAL PULONG UnsafeFit,
|
||||
OUT OPTIONAL PULONG UnsafeDx,
|
||||
OUT LPSIZE UnsafeSize,
|
||||
IN FLONG fl
|
||||
)
|
||||
{
|
||||
PDC dc;
|
||||
LPWSTR String;
|
||||
|
@ -3424,6 +3428,8 @@ NtGdiGetTextExtentExPoint(HDC hDC,
|
|||
LPINT Dx;
|
||||
PTEXTOBJ TextObj;
|
||||
|
||||
/* FIXME: Handle fl */
|
||||
|
||||
if (Count < 0)
|
||||
{
|
||||
SetLastWin32Error(ERROR_INVALID_PARAMETER);
|
||||
|
@ -3558,7 +3564,7 @@ NtGdiGetTextExtent(HDC hdc,
|
|||
LPSIZE psize,
|
||||
UINT flOpts)
|
||||
{
|
||||
return NtGdiGetTextExtentExPoint(hdc, lpwsz, cwc, 0, NULL, NULL, psize);
|
||||
return NtGdiGetTextExtentExW(hdc, lpwsz, cwc, 0, NULL, NULL, psize, 0);
|
||||
}
|
||||
|
||||
BOOL
|
||||
|
|
|
@ -149,7 +149,7 @@ NtGdiGetSystemPaletteUse 1
|
|||
NtGdiGetTextAlign 1
|
||||
NtGdiGetTextCharsetInfo 3
|
||||
NtGdiGetTextColor 1
|
||||
NtGdiGetTextExtentExPoint 7
|
||||
NtGdiGetTextExtentExW 8
|
||||
NtGdiGetTextExtent 5
|
||||
NtGdiGetTextExtentPoint32 4
|
||||
NtGdiGetTextFace 3
|
||||
|
|
Loading…
Reference in a new issue