mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
Implement Get & SetTextCharacterExtra. Does nothing ATM.
svn path=/trunk/; revision=22261
This commit is contained in:
parent
8fcbc86a16
commit
fb9a28f2b5
4 changed files with 32 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -150,6 +150,7 @@ NtGdiGetRasterizerCaps 2
|
|||
NtGdiGetRelAbs 1
|
||||
NtGdiGetRegionData 3
|
||||
NtGdiGetRgnBox 2
|
||||
NtGdiGetSetTextCharExtra 3
|
||||
NtGdiGetStockObject 1
|
||||
NtGdiGetStretchBltMode 1
|
||||
NtGdiGetSystemPaletteEntries 4
|
||||
|
|
Loading…
Reference in a new issue