mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[WIN32K]
Make internal GDI headers C++ compatible, get rid of USER dependencies svn path=/trunk/; revision=66889
This commit is contained in:
parent
12e465be82
commit
8123f0d8b5
7 changed files with 20 additions and 4 deletions
|
@ -22,5 +22,5 @@ FORCEINLINE
|
|||
PEDRIVEROBJ
|
||||
DRIVEROBJ_TryLockObject(HDRVOBJ hdo)
|
||||
{
|
||||
return GDIOBJ_TryLockObject(hdo, GDIObjType_DRVOBJ_TYPE);
|
||||
return (PEDRIVEROBJ)GDIOBJ_TryLockObject(hdo, GDIObjType_DRVOBJ_TYPE);
|
||||
}
|
||||
|
|
|
@ -32,8 +32,8 @@ IntEngMaskBlt(
|
|||
VOID
|
||||
FASTCALL
|
||||
IntEngWindowChanged(
|
||||
_In_ PWND Window,
|
||||
_In_ FLONG flChanged);
|
||||
_In_ struct _WND *Window,
|
||||
_In_ FLONG flChanged);
|
||||
|
||||
ULONGLONG
|
||||
APIENTRY
|
||||
|
|
|
@ -40,9 +40,14 @@
|
|||
---------------------------------------------------------------------------*/
|
||||
|
||||
/* EXtended CLip and Window Region Object */
|
||||
#ifdef __cplusplus
|
||||
typedef struct _XCLIPOBJ : _WNDOBJ
|
||||
{
|
||||
#else
|
||||
typedef struct _XCLIPOBJ
|
||||
{
|
||||
WNDOBJ;
|
||||
#endif
|
||||
PVOID pClipRgn; /* prgnRao_ or (prgnVis_ if (prgnRao_ == z)) */
|
||||
RECTL rclClipRgn;
|
||||
PVOID pscanClipRgn; /* Ptr to regions rect buffer based on iDirection. */
|
||||
|
|
|
@ -16,9 +16,14 @@ typedef struct _FILEVIEW
|
|||
PVOID pSection;
|
||||
} FILEVIEW, *PFILEVIEW;
|
||||
|
||||
#ifdef __cplusplus
|
||||
typedef struct _FONTFILEVIEW : FILEVIEW
|
||||
{
|
||||
#else
|
||||
typedef struct _FONTFILEVIEW
|
||||
{
|
||||
FILEVIEW;
|
||||
#endif
|
||||
DWORD reserved[2];
|
||||
PWSTR pwszPath;
|
||||
SIZE_T ulRegionSize;
|
||||
|
|
|
@ -220,7 +220,7 @@ DC_LockDc(HDC hdc)
|
|||
{
|
||||
PDC pdc;
|
||||
|
||||
pdc = GDIOBJ_LockObject(hdc, GDIObjType_DC_TYPE);
|
||||
pdc = (PDC)GDIOBJ_LockObject(hdc, GDIObjType_DC_TYPE);
|
||||
if (pdc)
|
||||
{
|
||||
ASSERT((GDI_HANDLE_GET_TYPE(pdc->BaseObject.hHmgr) == GDILoObjType_LO_DC_TYPE) ||
|
||||
|
|
|
@ -125,6 +125,7 @@ GdiDbgPostServiceHook(ULONG ulSyscallId, ULONG_PTR ulResult);
|
|||
#define ID_Win32PreServiceHook 'WSH0'
|
||||
#define ID_Win32PostServiceHook 'WSH1'
|
||||
|
||||
#ifndef __cplusplus
|
||||
FORCEINLINE void
|
||||
GdiDbgAssertNoLocks(char * pszFile, ULONG nLine)
|
||||
{
|
||||
|
@ -139,6 +140,7 @@ GdiDbgAssertNoLocks(char * pszFile, ULONG nLine)
|
|||
ASSERT(FALSE);
|
||||
}
|
||||
}
|
||||
#endif // __cplusplus
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
#pragma once
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable:4200) // zero-sized array in struct/union
|
||||
#endif // _MSC_VER
|
||||
|
||||
// Palette mode flags
|
||||
enum _PALFLAGS
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue