[ros-diffs] [jimtabor] 34020: Path does not work and it locks up the system with out any debug information. I will try to have it ready before 0.3.5 is release.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Thu Jun 19 03:47:57 CEST 2008


Author: jimtabor
Date: Wed Jun 18 20:47:57 2008
New Revision: 34020

URL: http://svn.reactos.org/svn/reactos?rev=34020&view=rev
Log:
Path does not work and it locks up the system with out any debug information. I will try to have it ready before 0.3.5 is release.

Modified:
    trunk/reactos/subsystems/win32/win32k/include/path.h
    trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c

Modified: trunk/reactos/subsystems/win32/win32k/include/path.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/include/path.h?rev=34020&r1=34019&r2=34020&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/path.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/include/path.h [iso-8859-1] Wed Jun 18 20:47:57 2008
@@ -1,5 +1,35 @@
 #ifndef _WIN32K_PATH_H
 #define _WIN32K_PATH_H
+
+typedef struct _PATH
+{
+  BASEOBJECT   BaseObject;
+  
+  RECTFX       rcfxBoundBox;
+  POINTFX      ptfxSubPathStart;
+
+  // Things to convert from:
+  DWORD        state;
+  POINT        *pPoints;
+  BYTE         *pFlags;
+  int          numEntriesUsed;
+  int          numEntriesAllocated;
+  BOOL         newStroke;
+} PATH, *PPATH;
+
+typedef struct _EPATHOBJ
+{
+  PATHOBJ po;
+  PPATH   pPath;
+} EPATHOBJ, *PEPATHOBJ;
+
+#define  PATH_AllocPath() ((PPATH) GDIOBJ_AllocObj(GDIObjType_PATH_TYPE))
+#define  PATH_AllocPathWithHandle() ((PPATH) GDIOBJ_AllocObjWithHandle (GDI_OBJECT_TYPE_PATH))
+#define  PATH_FreePath(pPath)  GDIOBJ_FreeObj((POBJ)pPath, GDIObjType_PATH_TYPE)
+#define  PATH_FreePathByHandle(hPath)  GDIOBJ_FreeObjbyHandle((HGDIOBJ)hPath, GDI_OBJECT_TYPE_PATH)
+#define  PATH_LockPath(hPath) ((PROSRGNDATA)GDIOBJ_LockObj((HGDIOBJ)hPath, GDI_OBJECT_TYPE_PATH))
+#define  PATH_UnlockPath(pPath) GDIOBJ_UnlockObjByPtr((POBJ)pPath)
+
 
 #define PATH_IsPathOpen(path) ((path).state==PATH_Open)
 

Modified: trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c?rev=34020&r1=34019&r2=34020&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c [iso-8859-1] Wed Jun 18 20:47:57 2008
@@ -46,7 +46,7 @@
   {1, sizeof(ROSRGNDATA),    TAG_REGION,       REGION_Cleanup},   /* 04 RGN */
   {1, sizeof(BITMAPOBJ),     TAG_SURFACE,      BITMAP_Cleanup},   /* 05 SURFACE */
   {1, sizeof(CLIENTOBJ),     TAG_CLIENTOBJ,    GDI_CleanupDummy}, /* 06 CLIENTOBJ: METADC,... */
-  {0, 0,                     TAG_PATH,         NULL},             /* 07 PATH, unused */
+  {1, sizeof(PATH),          TAG_PATH,         GDI_CleanupDummy}, /* 07 PATH */
   {1, sizeof(PALGDI),        TAG_PALETTE,      PALETTE_Cleanup},  /* 08 PAL */
   {1, sizeof(COLORSPACE),    TAG_ICMLCS,       GDI_CleanupDummy}, /* 09 ICMLCS, */
   {1, sizeof(TEXTOBJ),       TAG_LFONT,        GDI_CleanupDummy}, /* 0a LFONT */



More information about the Ros-diffs mailing list