mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Implement Get & Set batch limit.
svn path=/trunk/; revision=24553
This commit is contained in:
@@ -6,11 +6,14 @@
|
||||
* PROGRAMMER: Alex Ionescu ([email protected])
|
||||
*/
|
||||
|
||||
#define GDI_BATCH_LIMIT 20
|
||||
|
||||
/* DATA **********************************************************************/
|
||||
|
||||
extern PGDI_TABLE_ENTRY GdiHandleTable;
|
||||
extern HANDLE hProcessHeap;
|
||||
extern HANDLE CurrentProcessId;
|
||||
extern DWORD GDI_BatchLimit;
|
||||
|
||||
typedef INT
|
||||
(CALLBACK* EMFPLAYPROC)(
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
|
||||
PGDI_TABLE_ENTRY GdiHandleTable = NULL;
|
||||
HANDLE CurrentProcessId = NULL;
|
||||
DWORD GDI_BatchLimit = 1;
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
@@ -69,3 +70,29 @@ BOOL GdiGetHandleUserData(HGDIOBJ hGdiObj, PVOID *UserData)
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
DWORD
|
||||
STDCALL
|
||||
GdiSetBatchLimit(DWORD Limit)
|
||||
{
|
||||
DWORD OldLimit = GDI_BatchLimit;
|
||||
if ((!Limit) || (Limit > GDI_BATCH_LIMIT)) return Limit;
|
||||
GdiFlush();
|
||||
GDI_BatchLimit = Limit;
|
||||
return OldLimit;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
DWORD
|
||||
STDCALL
|
||||
GdiGetBatchLimit()
|
||||
{
|
||||
return GDI_BatchLimit;
|
||||
}
|
||||
|
||||
@@ -871,34 +871,6 @@ GdiFlush()
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
DWORD
|
||||
STDCALL
|
||||
GdiSetBatchLimit(
|
||||
DWORD a0
|
||||
)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
DWORD
|
||||
STDCALL
|
||||
GdiGetBatchLimit()
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user