Implement Get & SetTextCharacterExtra. Does nothing ATM.

svn path=/trunk/; revision=22261
This commit is contained in:
James Tabor 2006-06-07 01:22:47 +00:00
parent 8fcbc86a16
commit fb9a28f2b5
4 changed files with 32 additions and 8 deletions

View file

@ -251,9 +251,7 @@ GetTextCharacterExtra(
HDC hDc
)
{
UNIMPLEMENTED;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
return NtGdiGetSetTextCharExtra( hDc, 0, FALSE);
}
@ -390,13 +388,11 @@ SetSystemPaletteUse(
int
STDCALL
SetTextCharacterExtra(
HDC a0,
int a1
HDC hDC,
int CharExtra
)
{
UNIMPLEMENTED;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
return NtGdiGetSetTextCharExtra( hDC, CharExtra, TRUE);
}

View file

@ -679,6 +679,11 @@ INT STDCALL NtGdiGetROP2(HDC hDC);
/* Should be done in user-mode using shared GDI Objects. */
INT STDCALL NtGdiGetRelAbs(HDC hDC);
/* Should be done in user-mode using shared GDI Objects. */
INT
STDCALL
NtGdiGetSetTextCharExtra( HDC hDC, INT CharExtra, BOOL Set);
/* Should be done in user-mode using shared GDI Objects. */
INT STDCALL NtGdiGetStretchBltMode(HDC hDC);

View file

@ -3267,4 +3267,26 @@ FontGetObject(PTEXTOBJ Font, INT Count, PVOID Buffer)
return sizeof(LOGFONTW);
}
/* Remove this HAX! after the below function is done in GDI32.DLL! */
INT
STDCALL
NtGdiGetSetTextCharExtra( HDC hDC, INT CharExtra, BOOL Set)
{
/* Ulta-Ugly Hax! */
INT Ret = 0x80000000;
DPRINT("TextCharacterExtra %d", CharExtra);
PDC dc = DC_LockDc ( hDC );
if (!dc)
{
SetLastWin32Error(ERROR_INVALID_HANDLE);
}
else
{
Ret = dc->w.charExtra;
if( Set ) dc->w.charExtra = CharExtra;
}
return (Ret);
}
/* EOF */

View file

@ -150,6 +150,7 @@ NtGdiGetRasterizerCaps 2
NtGdiGetRelAbs 1
NtGdiGetRegionData 3
NtGdiGetRgnBox 2
NtGdiGetSetTextCharExtra 3
NtGdiGetStockObject 1
NtGdiGetStretchBltMode 1
NtGdiGetSystemPaletteEntries 4