Author: greatlrd
Date: Sat Jul 21 21:28:26 2007
New Revision: 27767
URL:
http://svn.reactos.org/svn/reactos?rev=27767&view=rev
Log:
fixed so metafile works bit better, do not crash on alloc memory
but we still does not implement it to 100%, it contain allot of bugs
Modified:
trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c Sat Jul 21 21:28:26 2007
@@ -81,8 +81,9 @@
{GDI_OBJECT_TYPE_DIRECTDRAW, sizeof(DD_DIRECTDRAW), DD_Cleanup},
{GDI_OBJECT_TYPE_DD_SURFACE, sizeof(DD_SURFACE), DDSURF_Cleanup},
{GDI_OBJECT_TYPE_EXTPEN, sizeof(GDIBRUSHOBJ), EXTPEN_Cleanup},
- {GDI_OBJECT_TYPE_METADC, 0, GDI_CleanupDummy},
- {GDI_OBJECT_TYPE_METAFILE, 0, GDI_CleanupDummy},
+ /* FIXME do not use normal DC struct for this */
+ {GDI_OBJECT_TYPE_METADC, sizeof(DC), GDI_CleanupDummy},
+ {GDI_OBJECT_TYPE_METAFILE, sizeof(DC), GDI_CleanupDummy},
{GDI_OBJECT_TYPE_ENHMETAFILE, 0, GDI_CleanupDummy},
{GDI_OBJECT_TYPE_ENHMETADC, 0, GDI_CleanupDummy},
{GDI_OBJECT_TYPE_MEMDC, 0, GDI_CleanupDummy},