mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 20:50:29 +00:00
Move GetTextFaceAliasW to text.c.
svn path=/trunk/; revision=36780
This commit is contained in:
parent
8c7bebfed8
commit
bc4ca08f94
3 changed files with 23 additions and 31 deletions
|
@ -224,7 +224,7 @@ VOID
|
||||||
STDCALL
|
STDCALL
|
||||||
GdiSetLastError(DWORD dwErrCode)
|
GdiSetLastError(DWORD dwErrCode)
|
||||||
{
|
{
|
||||||
NtCurrentTeb ()->LastErrorValue = (ULONG) dwErrCode;
|
NtCurrentTeb()->LastErrorValue = (ULONG) dwErrCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
|
|
|
@ -1239,27 +1239,6 @@ GetTextExtentExPointWPri(HDC hdc,
|
||||||
return NtGdiGetTextExtentExW(hdc,lpwsz,cwc,dxMax,pcCh,pdxOut,psize,0);
|
return NtGdiGetTextExtentExW(hdc,lpwsz,cwc,dxMax,pcCh,pdxOut,psize,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @implemented
|
|
||||||
*/
|
|
||||||
INT
|
|
||||||
STDCALL
|
|
||||||
GetTextFaceAliasW(HDC hdc,
|
|
||||||
int cChar,
|
|
||||||
LPWSTR pszOut)
|
|
||||||
{
|
|
||||||
INT retValue = 0;
|
|
||||||
if ((!pszOut) || (cChar))
|
|
||||||
{
|
|
||||||
retValue = NtGdiGetTextFaceW(hdc,cChar,pszOut,TRUE);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SetLastError(ERROR_INVALID_PARAMETER);
|
|
||||||
}
|
|
||||||
return retValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @unimplemented
|
* @unimplemented
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -363,18 +363,12 @@ GetTextFaceW(HDC hDC,
|
||||||
INT nCount,
|
INT nCount,
|
||||||
PWSTR pFaceName)
|
PWSTR pFaceName)
|
||||||
{
|
{
|
||||||
INT retValue;
|
|
||||||
|
|
||||||
if (pFaceName && nCount <= 0)
|
if (pFaceName && nCount <= 0)
|
||||||
{
|
{
|
||||||
retValue = 0;
|
// GdiSetLastError(ERROR_INVALID_PARAMETER);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
else
|
return NtGdiGetTextFaceW(hDC, nCount, pFaceName, FALSE);
|
||||||
{
|
|
||||||
retValue = NtGdiGetTextFaceW(hDC, nCount, pFaceName, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
return retValue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -401,6 +395,25 @@ GetTextFaceA( HDC hdc, INT count, LPSTR name )
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @implemented
|
||||||
|
*/
|
||||||
|
INT
|
||||||
|
STDCALL
|
||||||
|
GetTextFaceAliasW(HDC hdc,
|
||||||
|
int cChar,
|
||||||
|
LPWSTR pszOut)
|
||||||
|
{
|
||||||
|
if ( pszOut && !cChar )
|
||||||
|
{
|
||||||
|
GdiSetLastError(ERROR_INVALID_PARAMETER);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
return NtGdiGetTextFaceW(hdc,cChar,pszOut,TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
STDCALL
|
STDCALL
|
||||||
GetFontResourceInfoW(
|
GetFontResourceInfoW(
|
||||||
|
|
Loading…
Reference in a new issue