mirror of
https://github.com/reactos/reactos.git
synced 2025-05-22 18:45:00 +00:00
Build GDI32 with NDK and without DDK.
svn path=/trunk/; revision=16186
This commit is contained in:
parent
9eea30f8b3
commit
d373bd32e7
11 changed files with 40 additions and 28 deletions
|
@ -2,9 +2,6 @@
|
|||
#ifndef __WIN32K_BITMAPS_H
|
||||
#define __WIN32K_BITMAPS_H
|
||||
|
||||
#include <win32k/dc.h>
|
||||
#include <win32k/gdiobj.h>
|
||||
|
||||
/* GDI logical bitmap object */
|
||||
typedef struct _BITMAPOBJ
|
||||
{
|
||||
|
@ -15,8 +12,12 @@ typedef struct _BITMAPOBJ
|
|||
to get width/height of bitmap, use
|
||||
bitmap.bmWidth/bitmap.bmHeight for
|
||||
that */
|
||||
#ifdef NTOS_MODE_USER
|
||||
PVOID BitsLock;
|
||||
#else
|
||||
PFAST_MUTEX BitsLock; /* You need to hold this lock before you touch
|
||||
the actual bits in the bitmap */
|
||||
#endif
|
||||
|
||||
/* For device-independent bitmaps: */
|
||||
DIBSECTION *dib;
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
#ifndef __WIN32K_COORD_H
|
||||
#define __WIN32K_COORD_H
|
||||
|
||||
#include "dc.h"
|
||||
|
||||
BOOL
|
||||
STDCALL
|
||||
NtGdiCombineTransform (
|
||||
|
|
|
@ -2,11 +2,6 @@
|
|||
#ifndef __WIN32K_DC_H
|
||||
#define __WIN32K_DC_H
|
||||
|
||||
#include <windows.h>
|
||||
#include <win32k/driver.h>
|
||||
#include <win32k/gdiobj.h>
|
||||
#include <win32k/path.h>
|
||||
|
||||
typedef struct _WIN_DC_INFO
|
||||
{
|
||||
int flags;
|
||||
|
@ -135,7 +130,11 @@ typedef struct
|
|||
GDIINFO GDIInfo;
|
||||
DEVINFO DevInfo;
|
||||
DRIVER_FUNCTIONS DriverFunctions;
|
||||
#ifdef NTOS_MODE_USER
|
||||
PVOID VideoFileObject;
|
||||
#else
|
||||
PFILE_OBJECT VideoFileObject;
|
||||
#endif
|
||||
BOOLEAN PreparedDriver;
|
||||
ULONG DisplayNumber;
|
||||
|
||||
|
@ -149,6 +148,8 @@ typedef struct
|
|||
|
||||
/* Internal functions */
|
||||
|
||||
#ifndef NTOS_MODE_USER
|
||||
|
||||
#define DC_LockDc(hDC) \
|
||||
((PDC) GDIOBJ_LockObj ((HGDIOBJ) hDC, GDI_OBJECT_TYPE_DC))
|
||||
#define DC_UnlockDc(pDC) \
|
||||
|
@ -167,6 +168,8 @@ VOID FASTCALL DC_SetOwnership(HDC DC, PEPROCESS Owner);
|
|||
VOID FASTCALL DC_UpdateXforms(PDC dc);
|
||||
BOOL FASTCALL DC_InvertXform(const XFORM *xformSrc, XFORM *xformDest);
|
||||
|
||||
#endif
|
||||
|
||||
/* User entry points */
|
||||
|
||||
BOOL STDCALL NtGdiCancelDC(HDC hDC);
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#ifndef __WIN32K_DRIVER_H
|
||||
#define __WIN32K_DRIVER_H
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <ddk/winddi.h>
|
||||
|
||||
typedef BOOL (STDCALL *PGD_ENABLEDRIVER)(ULONG, ULONG, PDRVENABLEDATA);
|
||||
|
@ -176,6 +175,8 @@ typedef struct _DRIVER_FUNCTIONS
|
|||
PGD_ALPHABLEND AlphaBlend;
|
||||
} DRIVER_FUNCTIONS, *PDRIVER_FUNCTIONS;
|
||||
|
||||
#ifndef NTOS_MODE_USER
|
||||
|
||||
BOOL DRIVER_RegisterDriver(LPCWSTR Name, PGD_ENABLEDRIVER EnableDriver);
|
||||
PGD_ENABLEDRIVER DRIVER_FindDDIDriver(LPCWSTR Name);
|
||||
PFILE_OBJECT DRIVER_FindMPDriver(ULONG DisplayNumber);
|
||||
|
@ -187,3 +188,5 @@ INT DRIVER_UnreferenceDriver (LPCWSTR Name);
|
|||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -6,8 +6,6 @@
|
|||
#ifndef __WIN32K_GDIOBJ_H
|
||||
#define __WIN32K_GDIOBJ_H
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
|
||||
/* base address where the handle table is mapped to */
|
||||
#define GDI_HANDLE_TABLE_BASE_ADDRESS (0x400000)
|
||||
|
||||
|
@ -67,7 +65,11 @@ typedef BOOL (INTERNAL_CALL *GDICLEANUPPROC)(PVOID ObjectBody);
|
|||
*/
|
||||
typedef struct _GDIOBJHDR
|
||||
{
|
||||
#ifdef NTOS_MODE_USER
|
||||
PVOID LockingThread;
|
||||
#else
|
||||
PETHREAD LockingThread; /* only assigned if a thread is holding the lock! */
|
||||
#endif
|
||||
ULONG Locks;
|
||||
#ifdef GDI_DEBUG
|
||||
const char* createdfile;
|
||||
|
@ -77,6 +79,8 @@ typedef struct _GDIOBJHDR
|
|||
#endif
|
||||
} GDIOBJHDR, *PGDIOBJHDR;
|
||||
|
||||
#ifndef NTOS_MODE_USER
|
||||
|
||||
BOOL INTERNAL_CALL GDIOBJ_OwnedByCurrentProcess(HGDIOBJ ObjectHandle);
|
||||
void INTERNAL_CALL GDIOBJ_SetOwnership(HGDIOBJ ObjectHandle, PEPROCESS Owner);
|
||||
void INTERNAL_CALL GDIOBJ_CopyOwnership(HGDIOBJ CopyFrom, HGDIOBJ CopyTo);
|
||||
|
@ -108,10 +112,12 @@ PGDIOBJ INTERNAL_CALL GDIOBJ_ShareLockObj (HGDIOBJ hObj, DWORD ObjectType);
|
|||
|
||||
#endif /* GDI_DEBUG */
|
||||
|
||||
PVOID INTERNAL_CALL GDI_MapHandleTable(PEPROCESS Process);
|
||||
|
||||
#endif
|
||||
|
||||
#define GDIOBJFLAG_DEFAULT (0x0)
|
||||
#define GDIOBJFLAG_IGNOREPID (0x1)
|
||||
#define GDIOBJFLAG_IGNORELOCK (0x2)
|
||||
|
||||
PVOID INTERNAL_CALL GDI_MapHandleTable(PEPROCESS Process);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -5,13 +5,15 @@
|
|||
#define INTERNAL_CALL STDCALL
|
||||
#endif
|
||||
|
||||
#include <win32k/bitmaps.h>
|
||||
#include <win32k/brush.h>
|
||||
#include <win32k/cliprgn.h>
|
||||
#include <win32k/color.h>
|
||||
#include <win32k/coord.h>
|
||||
#include <win32k/cursoricon.h>
|
||||
#include <win32k/path.h>
|
||||
#include <win32k/driver.h>
|
||||
#include <win32k/dc.h>
|
||||
#include <win32k/coord.h>
|
||||
#include <win32k/bitmaps.h>
|
||||
#include <win32k/debug.h>
|
||||
#include <win32k/fillshap.h>
|
||||
#include <win32k/font.h>
|
||||
|
@ -22,7 +24,6 @@
|
|||
#include <win32k/misc.h>
|
||||
#include <win32k/ntuser.h>
|
||||
#include <win32k/paint.h>
|
||||
#include <win32k/path.h>
|
||||
#include <win32k/pen.h>
|
||||
#include <win32k/print.h>
|
||||
#include <win32k/region.h>
|
||||
|
|
|
@ -1,16 +1,13 @@
|
|||
#include <wine/windef.h>
|
||||
#include <windows.h>
|
||||
#include <ddraw.h>
|
||||
#include <string.h>
|
||||
#include <ddk/ntddk.h>
|
||||
#define NTOS_MODE_USER
|
||||
#include <ndk/ntndk.h>
|
||||
#include <ddentry.h>
|
||||
#include <win32k/kapi.h>
|
||||
#include <ddraw.h>
|
||||
#include <ddk/prntfont.h>
|
||||
#include <string.h>
|
||||
#include <win32k/kapi.h>
|
||||
#include <rosrtl/logfont.h>
|
||||
#include <rosrtl/devmode.h>
|
||||
#include <wine/unicode.h>
|
||||
#define NTOS_MODE_USER
|
||||
#include <ntos.h>
|
||||
|
||||
#define NtUserGetDCBrushColor(hbr) \
|
||||
(COLORREF)NtUserCallTwoParam((DWORD)(hbr), OBJ_BRUSH, TWOPARAM_ROUTINE_GETDCCOLOR)
|
||||
|
|
|
@ -404,10 +404,10 @@ GetCharacterPlacementW(
|
|||
/* Treat the case where no special handling was requested in a fastpath way */
|
||||
/* copy will do if the GCP_REORDER flag is not set */
|
||||
if(lpResults->lpOutString)
|
||||
strncpyW( lpResults->lpOutString, lpString, nSet );
|
||||
lstrcpynW( lpResults->lpOutString, lpString, nSet );
|
||||
|
||||
if(lpResults->lpGlyphs)
|
||||
strncpyW( lpResults->lpGlyphs, lpString, nSet );
|
||||
lstrcpynW( lpResults->lpGlyphs, lpString, nSet );
|
||||
|
||||
if(lpResults->lpOrder)
|
||||
{
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
#define NTOS_MODE_KERNEL
|
||||
#include <ntos.h>
|
||||
#include <win32k/ntddraw.h>
|
||||
#include <ddk/winddi.h>
|
||||
#include <win32k/win32k.h>
|
||||
|
||||
/*
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <win32k/ntddraw.h>
|
||||
#include <ddk/winddi.h>
|
||||
#include <win32k/win32k.h>
|
||||
#include <include/intddraw.h>
|
||||
#include <win32k/gdiobj.h>
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
*/
|
||||
#include <ddk/ntddk.h>
|
||||
#include <win32k/ntddraw.h>
|
||||
#include <ddk/winddi.h>
|
||||
#include <win32k/win32k.h>
|
||||
|
||||
#define NDEBUG
|
||||
|
|
Loading…
Reference in a new issue