mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 09:50:02 +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
|
HDC hDc
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
return NtGdiGetSetTextCharExtra( hDc, 0, FALSE);
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -390,13 +388,11 @@ SetSystemPaletteUse(
|
||||||
int
|
int
|
||||||
STDCALL
|
STDCALL
|
||||||
SetTextCharacterExtra(
|
SetTextCharacterExtra(
|
||||||
HDC a0,
|
HDC hDC,
|
||||||
int a1
|
int CharExtra
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
return NtGdiGetSetTextCharExtra( hDC, CharExtra, TRUE);
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -679,6 +679,11 @@ INT STDCALL NtGdiGetROP2(HDC hDC);
|
||||||
/* Should be done in user-mode using shared GDI Objects. */
|
/* Should be done in user-mode using shared GDI Objects. */
|
||||||
INT STDCALL NtGdiGetRelAbs(HDC hDC);
|
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. */
|
/* Should be done in user-mode using shared GDI Objects. */
|
||||||
INT STDCALL NtGdiGetStretchBltMode(HDC hDC);
|
INT STDCALL NtGdiGetStretchBltMode(HDC hDC);
|
||||||
|
|
||||||
|
|
|
@ -3267,4 +3267,26 @@ FontGetObject(PTEXTOBJ Font, INT Count, PVOID Buffer)
|
||||||
return sizeof(LOGFONTW);
|
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 */
|
/* EOF */
|
||||||
|
|
|
@ -150,6 +150,7 @@ NtGdiGetRasterizerCaps 2
|
||||||
NtGdiGetRelAbs 1
|
NtGdiGetRelAbs 1
|
||||||
NtGdiGetRegionData 3
|
NtGdiGetRegionData 3
|
||||||
NtGdiGetRgnBox 2
|
NtGdiGetRgnBox 2
|
||||||
|
NtGdiGetSetTextCharExtra 3
|
||||||
NtGdiGetStockObject 1
|
NtGdiGetStockObject 1
|
||||||
NtGdiGetStretchBltMode 1
|
NtGdiGetStretchBltMode 1
|
||||||
NtGdiGetSystemPaletteEntries 4
|
NtGdiGetSystemPaletteEntries 4
|
||||||
|
|
Loading…
Reference in a new issue