Patch by Stefan100 stefan__100__ at hotmail.com. Removes unimplemented NtGdi functions.

svn path=/trunk/; revision=31620
This commit is contained in:
James Tabor 2008-01-06 02:52:19 +00:00
parent 4197bbe411
commit 6880f63f6f
5 changed files with 20 additions and 146 deletions

View file

@ -298,4 +298,19 @@ GetStringBitmapW(HDC hdc,
} }
BOOL
WINAPI
CreateScalableFontResourceW(
DWORD fdwHidden,
LPCWSTR lpszFontRes,
LPCWSTR lpszFontFile,
LPCWSTR lpszCurrentPath
)
{
UNIMPLEMENTED;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
/* EOF */ /* EOF */

View file

@ -1412,26 +1412,7 @@ CreateFontW(
/* /*
* @implemented * @unimplemented
*/
BOOL
STDCALL
CreateScalableFontResourceW(
DWORD fdwHidden,
LPCWSTR lpszFontRes,
LPCWSTR lpszFontFile,
LPCWSTR lpszCurrentPath
)
{
return NtGdiCreateScalableFontResource ( fdwHidden,
lpszFontRes,
lpszFontFile,
lpszCurrentPath );
}
/*
* @implemented
*/ */
BOOL BOOL
STDCALL STDCALL
@ -1442,39 +1423,7 @@ CreateScalableFontResourceA(
LPCSTR lpszCurrentPath LPCSTR lpszCurrentPath
) )
{ {
NTSTATUS Status; return FALSE;
LPWSTR lpszFontResW, lpszFontFileW, lpszCurrentPathW;
BOOL rc = FALSE;
Status = HEAP_strdupA2W ( &lpszFontResW, lpszFontRes );
if (!NT_SUCCESS (Status))
SetLastError (RtlNtStatusToDosError(Status));
else
{
Status = HEAP_strdupA2W ( &lpszFontFileW, lpszFontFile );
if (!NT_SUCCESS (Status))
SetLastError (RtlNtStatusToDosError(Status));
else
{
Status = HEAP_strdupA2W ( &lpszCurrentPathW, lpszCurrentPath );
if (!NT_SUCCESS (Status))
SetLastError (RtlNtStatusToDosError(Status));
else
{
rc = NtGdiCreateScalableFontResource ( fdwHidden,
lpszFontResW,
lpszFontFileW,
lpszCurrentPathW );
HEAP_free ( lpszCurrentPathW );
}
HEAP_free ( lpszFontFileW );
}
HEAP_free ( lpszFontResW );
}
return rc;
} }
@ -1584,7 +1533,7 @@ RemoveFontResourceA(LPCSTR lpFileName)
} }
/* /*
* @implemented * @unimplemented
*/ */
BOOL BOOL
STDCALL STDCALL
@ -1595,7 +1544,6 @@ RemoveFontResourceExA(LPCSTR lpFileName,
{ {
NTSTATUS Status; NTSTATUS Status;
LPWSTR lpFileNameW; LPWSTR lpFileNameW;
BOOL rc = 0;
/* FIXME the flags */ /* FIXME the flags */
/* FIXME the pdv */ /* FIXME the pdv */
@ -1606,12 +1554,11 @@ RemoveFontResourceExA(LPCSTR lpFileName,
SetLastError (RtlNtStatusToDosError(Status)); SetLastError (RtlNtStatusToDosError(Status));
else else
{ {
rc = NtGdiRemoveFontResource ( lpFileNameW );
HEAP_free ( lpFileNameW ); HEAP_free ( lpFileNameW );
} }
return rc; return 0;
} }
/* /*
@ -1626,7 +1573,7 @@ RemoveFontResourceExW(LPCWSTR lpFileName,
/* FIXME the flags */ /* FIXME the flags */
/* FIXME the pdv */ /* FIXME the pdv */
/* FIXME NtGdiRemoveFontResource handle flags and pdv */ /* FIXME NtGdiRemoveFontResource handle flags and pdv */
return NtGdiRemoveFontResource ( lpFileName); return 0;
} }

View file

@ -59,16 +59,6 @@ NtGdiGetFontFamilyInfo(
DWORD Size DWORD Size
); );
/* The gdi32 call does all the work in user-mode, save for NtGdiMakeFontDir */
BOOL
NTAPI
NtGdiCreateScalableFontResource(
DWORD Hidden,
LPCWSTR FontRes,
LPCWSTR FontFile,
LPCWSTR CurrentPath
);
/* The gdi32 call Should Use NtGdiGetTextExtent */ /* The gdi32 call Should Use NtGdiGetTextExtent */
BOOL BOOL
NTAPI NTAPI
@ -98,27 +88,12 @@ NtGdiCreateDIBitmap (
UINT Usage UINT Usage
); );
/* Should be done in user-mode. */
int
STDCALL
NtGdiEnumFonts(HDC hDC,
LPCWSTR FaceName,
FONTENUMPROCW FontFunc,
LPARAM lParam);
/* Should be done in user-mode. */ /* Should be done in user-mode. */
BOOL BOOL
STDCALL STDCALL
NtGdiGetAspectRatioFilterEx(HDC hDC, NtGdiGetAspectRatioFilterEx(HDC hDC,
LPSIZE AspectRatio); LPSIZE AspectRatio);
/* Should be done in user-mode. */
DWORD
STDCALL
NtGdiGetFontLanguageInfo(HDC hDC);
/* Use NtGdiGetDCPoint with GdiGetViewPortExt */ /* Use NtGdiGetDCPoint with GdiGetViewPortExt */
BOOL STDCALL NtGdiGetViewportExtEx(HDC hDC, LPSIZE viewportExt); BOOL STDCALL NtGdiGetViewportExtEx(HDC hDC, LPSIZE viewportExt);
@ -151,11 +126,6 @@ NtGdiOffsetWindowOrgEx (
LPPOINT Point LPPOINT Point
); );
/* Should be done in user-mode. */
BOOL
STDCALL
NtGdiRemoveFontResource(LPCWSTR FileName);
/* Use SetDIBitsToDevice in gdi32. */ /* Use SetDIBitsToDevice in gdi32. */
INT INT
STDCALL STDCALL
@ -169,12 +139,6 @@ NtGdiSetDIBits (
UINT ColorUse UINT ColorUse
); );
/* Needs to be done in user-mode, using shared GDI Object Attributes. */
DWORD
STDCALL
NtGdiSetMapperFlags(HDC hDC,
DWORD Flag);
/* Needs to be done in user-mode. */ /* Needs to be done in user-mode. */
BOOL BOOL
STDCALL STDCALL

View file

@ -575,18 +575,6 @@ NtGdiHfontCreate(
} }
BOOL
STDCALL
NtGdiCreateScalableFontResource(DWORD Hidden,
LPCWSTR FontRes,
LPCWSTR FontFile,
LPCWSTR CurrentPath)
{
DPRINT1("NtGdiCreateScalableFontResource - is unimplemented, have a nice day and keep going");
return FALSE;
}
/************************************************************************* /*************************************************************************
* TranslateCharsetInfo * TranslateCharsetInfo
* *
@ -1410,16 +1398,6 @@ NtGdiGetFontFamilyInfo(HDC Dc,
return Count; return Count;
} }
int
STDCALL
NtGdiEnumFonts(HDC hDC,
LPCWSTR FaceName,
FONTENUMPROCW FontFunc,
LPARAM lParam)
{
UNIMPLEMENTED;
return 0;
}
FT_Glyph STDCALL FT_Glyph STDCALL
NtGdiGlyphCacheGet( NtGdiGlyphCacheGet(
FT_Face Face, FT_Face Face,
@ -2443,13 +2421,6 @@ NtGdiGetCharWidthW(
return TRUE; return TRUE;
} }
DWORD
STDCALL
NtGdiGetFontLanguageInfo(HDC hDC)
{
UNIMPLEMENTED;
return 0;
}
/* /*
* @implemented * @implemented
@ -4000,24 +3971,6 @@ NtGdiGetTextMetricsW(
return TRUE; return TRUE;
} }
BOOL
STDCALL
NtGdiRemoveFontResource(LPCWSTR FileName)
{
DPRINT1("NtGdiRemoveFontResource is UNIMPLEMENTED\n");
return FALSE;
}
DWORD
STDCALL
NtGdiSetMapperFlags(HDC hDC,
DWORD Flag)
{
UNIMPLEMENTED;
return 0;
}
BOOL BOOL
STDCALL STDCALL
NtGdiSetTextJustification(HDC hDC, NtGdiSetTextJustification(HDC hDC,

View file

@ -679,7 +679,6 @@ NtGdiDrawStream 3
# #
#ReactOS specific syscalls #ReactOS specific syscalls
NtGdiSetDIBits 7 NtGdiSetDIBits 7
NtGdiSetMapperFlags 2
NtGdiSetViewportExtEx 4 NtGdiSetViewportExtEx 4
NtGdiSetViewportOrgEx 4 NtGdiSetViewportOrgEx 4
NtGdiSetWindowExtEx 4 NtGdiSetWindowExtEx 4
@ -719,15 +718,11 @@ NtUserSetScrollBarInfo 3
NtUserGetDesktopWindow 0 NtUserGetDesktopWindow 0
NtGdiAddFontResource 2 NtGdiAddFontResource 2
NtGdiCreateDIBitmap 6 NtGdiCreateDIBitmap 6
NtGdiCreateScalableFontResource 4
NtGdiEnumFonts 4
NtGdiGetAspectRatioFilterEx 2 NtGdiGetAspectRatioFilterEx 2
NtGdiGetFontFamilyInfo 4 NtGdiGetFontFamilyInfo 4
NtGdiGetFontLanguageInfo 1
NtGdiGetTextExtentPoint32 4 NtGdiGetTextExtentPoint32 4
NtGdiOffsetViewportOrgEx 4 NtGdiOffsetViewportOrgEx 4
NtGdiOffsetWindowOrgEx 4 NtGdiOffsetWindowOrgEx 4
NtGdiRemoveFontResource 1
# #
# ReactOS only system calls # ReactOS only system calls
NtUserAcquireOrReleaseInputOwnership 1 NtUserAcquireOrReleaseInputOwnership 1