Author: jimtabor
Date: Tue Nov 4 18:38:52 2008
New Revision: 37195
URL:
http://svn.reactos.org/svn/reactos?rev=37195&view=rev
Log:
- Add and update Gdi entry flags.
Modified:
trunk/reactos/include/reactos/win32k/ntgdihdl.h
trunk/reactos/subsystems/win32/win32k/objects/region.c
Modified: trunk/reactos/include/reactos/win32k/ntgdihdl.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/win32k/ntg…
==============================================================================
--- trunk/reactos/include/reactos/win32k/ntgdihdl.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/win32k/ntgdihdl.h [iso-8859-1] Tue Nov 4 18:38:52 2008
@@ -42,7 +42,9 @@
#define GDI_ENTRY_UPPER_SHIFT 16
/* GDI Entry Flags */
-#define GDI_ENTRY_FLAG_NEED_UPDATE 4
+#define GDI_ENTRY_UNDELETABLE 1
+#define GDI_ENTRY_DELETING 2
+#define GDI_ENTRY_VALIDATE_VIS 4
/*! \defgroup GDI object types
*
Modified: trunk/reactos/subsystems/win32/win32k/objects/region.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/region.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/region.c [iso-8859-1] Tue Nov 4
18:38:52 2008
@@ -2092,7 +2092,7 @@
INT Index = GDI_HANDLE_GET_INDEX(pDC->BaseObject.hHmgr);
PGDI_TABLE_ENTRY Entry = &GdiHandleTable->Entries[Index];
pDC->DC_Flags |= DC_FLAG_DIRTY_RAO;
- Entry->Flags |= GDI_ENTRY_FLAG_NEED_UPDATE;
+ Entry->Flags |= GDI_ENTRY_VALIDATE_VIS;
IntGdiSetEmptyRect((PRECT)&pDC->erclClip);
}
@@ -2103,7 +2103,7 @@
INT Index = GDI_HANDLE_GET_INDEX(pDC->BaseObject.hHmgr);
PGDI_TABLE_ENTRY Entry = &GdiHandleTable->Entries[Index];
pDC->DC_Flags |= DC_FLAG_DIRTY_RAO;
- Entry->Flags |= GDI_ENTRY_FLAG_NEED_UPDATE;
+ Entry->Flags |= GDI_ENTRY_VALIDATE_VIS;
IntGdiSetEmptyRect((PRECT)&pDC->erclClip);
REGION_Delete(pDC->prgnVis);
pDC->prgnVis = prgnDefault;
@@ -2117,7 +2117,7 @@
PDC_ATTR pDc_Attr;
RECTL rcl;
- if (Entry->Flags & GDI_ENTRY_FLAG_NEED_UPDATE)
+ if (Entry->Flags & GDI_ENTRY_VALIDATE_VIS)
{
pDc_Attr = pDC->pDc_Attr;
if ( !pDc_Attr ) pDc_Attr = &pDC->Dc_Attr;
@@ -2141,7 +2141,7 @@
pDc_Attr->VisRectRegion.Rect = rcl;
- Entry->Flags &= ~GDI_ENTRY_FLAG_NEED_UPDATE;
+ Entry->Flags &= ~GDI_ENTRY_VALIDATE_VIS;
}
}