Author: greatlrd
Date: Thu Aug 23 18:02:10 2007
New Revision: 28470
URL:
http://svn.reactos.org/svn/reactos?rev=28470&view=rev
Log:
create stub for both CreateCompatibleDC and CreateCompatibleBitmap instead for redirect
them, they need share memory, and it need do some stuff in user mode
Modified:
trunk/reactos/dll/win32/gdi32/gdi32.def
trunk/reactos/dll/win32/gdi32/objects/bitmap.c
trunk/reactos/dll/win32/gdi32/objects/dc.c
Modified: trunk/reactos/dll/win32/gdi32/gdi32.def
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/gdi32.def?…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/gdi32.def (original)
+++ trunk/reactos/dll/win32/gdi32/gdi32.def Thu Aug 23 18:02:10 2007
@@ -47,20 +47,21 @@
CopyMetaFileW@8
CreateBitmap@20
CreateBitmapIndirect@4
+CreateColorSpaceA@4
+CreateColorSpaceW@4
+CreateCompatibleBitmap@12
+CreateCompatibleDC@4
+CreateDCA@16
+CreateDCW@16
+CreateDIBPatternBrush@8
+CreateDIBPatternBrushPt@8
+CreateDIBSection@24
ClearBitmapAttributes@8
ClearBrushAttributes@8
CopyMetaFileA@8
CopyMetaFileW@8
CreateBrushIndirect@4
-CreateColorSpaceA@4
-CreateColorSpaceW@4
-CreateCompatibleBitmap@12=NtGdiCreateCompatibleBitmap@12
-CreateCompatibleDC@4=NtGdiCreateCompatibleDC@4
-CreateDCA@16
-CreateDCW@16
-CreateDIBPatternBrush@8
-CreateDIBPatternBrushPt@8
CreateDIBSection@24
CreateDIBitmap@24=NtGdiCreateDIBitmap@24
CreateDiscardableBitmap@12
Modified: trunk/reactos/dll/win32/gdi32/objects/bitmap.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/bi…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/bitmap.c (original)
+++ trunk/reactos/dll/win32/gdi32/objects/bitmap.c Thu Aug 23 18:02:10 2007
@@ -139,6 +139,18 @@
}
+HBITMAP WINAPI
+CreateCompatibleBitmap(
+ HDC hDC,
+ INT Width,
+ INT Height)
+{
+ /* FIXME some part shall be done in user mode */
+ return NtGdiCreateCompatibleBitmap(hDC, Width, Height);
+}
+
+
+
INT WINAPI
SetDIBitsToDevice(
HDC hDC,
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 (original)
+++ trunk/reactos/dll/win32/gdi32/objects/dc.c Thu Aug 23 18:02:10 2007
@@ -78,6 +78,17 @@
return hDC;
}
+
+/*
+ * @implemented
+ */
+HDC
+STDCALL
+CreateCompatibleDC ( HDC hdc)
+{
+ /* FIXME need sharememory if it metadc */
+ return NtGdiCreateCompatibleDC(hdc);
+}
/*
* @implemented