Author: jimtabor
Date: Mon May 12 13:16:48 2008
New Revision: 33481
URL:
http://svn.reactos.org/svn/reactos?rev=33481&view=rev
Log:
Misc patch, for later Icm support, update CreateCompatibleDC.
Modified:
trunk/reactos/dll/win32/gdi32/objects/dc.c
Modified: trunk/reactos/dll/win32/gdi32/objects/dc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/dc…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/dc.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdi32/objects/dc.c [iso-8859-1] Mon May 12 13:16:48 2008
@@ -86,8 +86,20 @@
STDCALL
CreateCompatibleDC ( HDC hdc)
{
- /* FIXME need sharememory if it metadc */
- return NtGdiCreateCompatibleDC(hdc);
+ HDC rhDC;
+// PDC_ATTR Dc_Attr;
+
+ rhDC = NtGdiCreateCompatibleDC(hdc);
+#if 0
+ if ( hdc && rhDC)
+ {
+ if (GdiGetHandleUserData((HGDIOBJ) hdc, GDI_OBJECT_TYPE_DC, (PVOID) &Dc_Attr))
+ {
+ if ( Dc_Attr->pvLIcm ) IcmCompatibleDC(rhDC, hdc, Dc_Attr);
+ }
+ }
+#endif
+ return rhDC;
}
/*