- Put GDI initialization function(s) in a dedicated file.
- Whitespace fixes...

svn path=/trunk/; revision=65852
This commit is contained in:
Hermès Bélusca-Maïto 2014-12-27 19:16:05 +00:00
parent 1db4f01f36
commit a306e56c55
6 changed files with 98 additions and 81 deletions

View file

@ -167,6 +167,7 @@ list(APPEND SOURCE
gdi/ntgdi/gdiobj.c gdi/ntgdi/gdiobj.c
gdi/ntgdi/gdipool.c gdi/ntgdi/gdipool.c
gdi/ntgdi/icm.c gdi/ntgdi/icm.c
gdi/ntgdi/init.c
gdi/ntgdi/line.c gdi/ntgdi/line.c
gdi/ntgdi/metafile.c gdi/ntgdi/metafile.c
gdi/ntgdi/palette.c gdi/ntgdi/palette.c

View file

@ -1537,16 +1537,6 @@ NtGdiIcmBrushInfo(
return FALSE; return FALSE;
} }
/*
* @implemented
*/
BOOL
APIENTRY
NtGdiInit(VOID)
{
return TRUE;
}
/* /*
* @unimplemented * @unimplemented
*/ */

View file

@ -0,0 +1,25 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Win32k subsystem
* PURPOSE: Initialization of GDI
* FILE: win32ss/gdi/ntgdi/init.c
* PROGRAMER:
*/
#include <win32k.h>
#define NDEBUG
#include <debug.h>
#include <kdros.h>
/*
* @implemented
*/
BOOL
APIENTRY
NtGdiInit(VOID)
{
return TRUE;
}
/* EOF */

View file

@ -974,6 +974,10 @@ typedef struct tagSERVERINFO
PERUSERSERVERINFO; PERUSERSERVERINFO;
} SERVERINFO, *PSERVERINFO; } SERVERINFO, *PSERVERINFO;
#ifdef _M_IX86
C_ASSERT(sizeof(SERVERINFO) <= PAGE_SIZE);
#endif
// Server event activity bits. // Server event activity bits.
#define SRV_EVENT_MENU 0x0001 #define SRV_EVENT_MENU 0x0001

View file

@ -733,10 +733,6 @@ DriverUnload(IN PDRIVER_OBJECT DriverObject)
ResetCsrProcess(); ResetCsrProcess();
} }
#ifdef _M_IX86
C_ASSERT(sizeof(SERVERINFO) <= PAGE_SIZE);
#endif
// Return on failure // Return on failure
#define NT_ROF(x) \ #define NT_ROF(x) \
{ \ { \

View file

@ -2,13 +2,13 @@
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* PURPOSE: ntuser init. and main funcs. * PURPOSE: ntuser init. and main funcs.
* FILE: subsystems/win32/win32k/ntuser/ntuser.c * FILE: win32ss/user/ntuser/ntuser.c
*/ */
#include <win32k.h> #include <win32k.h>
DBG_DEFAULT_CHANNEL(UserMisc); DBG_DEFAULT_CHANNEL(UserMisc);
/* GLOBALS *******************************************************************/ /* GLOBALS ********************************************************************/
PTHREADINFO gptiCurrent = NULL; PTHREADINFO gptiCurrent = NULL;
PPROCESSINFO gppiInputProvider = NULL; PPROCESSINFO gppiInputProvider = NULL;
@ -21,13 +21,12 @@ HINSTANCE hModClient = NULL;
BOOL ClientPfnInit = FALSE; BOOL ClientPfnInit = FALSE;
ATOM gaGuiConsoleWndClass; ATOM gaGuiConsoleWndClass;
/* PRIVATE FUNCTIONS *********************************************************/ /* PRIVATE FUNCTIONS **********************************************************/
static static
NTSTATUS FASTCALL NTSTATUS FASTCALL
InitUserAtoms(VOID) InitUserAtoms(VOID)
{ {
gpsi->atomSysClass[ICLS_MENU] = 32768; gpsi->atomSysClass[ICLS_MENU] = 32768;
gpsi->atomSysClass[ICLS_DESKTOP] = 32769; gpsi->atomSysClass[ICLS_DESKTOP] = 32769;
gpsi->atomSysClass[ICLS_DIALOG] = 32770; gpsi->atomSysClass[ICLS_DIALOG] = 32770;
@ -59,7 +58,7 @@ InitUserAtoms(VOID)
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
/* FUNCTIONS *****************************************************************/ /* FUNCTIONS ******************************************************************/
INIT_FUNCTION INIT_FUNCTION
NTSTATUS NTSTATUS
@ -110,7 +109,7 @@ UserInitialize(VOID)
Status = UserCreateWinstaDirectory(); Status = UserCreateWinstaDirectory();
if (!NT_SUCCESS(Status)) return Status; if (!NT_SUCCESS(Status)) return Status;
/* Initialize Video. */ /* Initialize Video */
Status = InitVideo(); Status = InitVideo();
if (!NT_SUCCESS(Status)) return Status; if (!NT_SUCCESS(Status)) return Status;
@ -123,7 +122,7 @@ UserInitialize(VOID)
// Create ThreadInfo for this Thread! // Create ThreadInfo for this Thread!
// { // {
/* Initialize the current thread. */ /* Initialize the current thread */
Status = UserCreateThreadInfo(PsGetCurrentThread()); Status = UserCreateThreadInfo(PsGetCurrentThread());
if (!NT_SUCCESS(Status)) return Status; if (!NT_SUCCESS(Status)) return Status;
@ -201,8 +200,8 @@ RETURN
*/ */
BOOL FASTCALL UserIsEntered(VOID) BOOL FASTCALL UserIsEntered(VOID)
{ {
return ExIsResourceAcquiredExclusiveLite(&UserLock) return ExIsResourceAcquiredExclusiveLite(&UserLock) ||
|| ExIsResourceAcquiredSharedLite(&UserLock); ExIsResourceAcquiredSharedLite(&UserLock);
} }
BOOL FASTCALL UserIsEnteredExclusive(VOID) BOOL FASTCALL UserIsEnteredExclusive(VOID)
@ -236,3 +235,5 @@ VOID FASTCALL UserLeave(VOID)
ExReleaseResourceLite(&UserLock); ExReleaseResourceLite(&UserLock);
KeLeaveCriticalRegion(); KeLeaveCriticalRegion();
} }
/* EOF */