Author: jimtabor
Date: Sat Jun 6 05:53:24 2009
New Revision: 41292
URL:
http://svn.reactos.org/svn/reactos?rev=41292&view=rev
Log:
- Update stubs, NtGdiEngCreateDevice/Bitmap.
Modified:
trunk/reactos/subsystems/win32/win32k/stubs/stubs.c
Modified: trunk/reactos/subsystems/win32/win32k/stubs/stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/st…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/stubs/stubs.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/stubs/stubs.c [iso-8859-1] Sat Jun 6 05:53:24
2009
@@ -5,9 +5,6 @@
#include <w32k.h>
#define UNIMPLEMENTED DbgPrint("(%s:%i) WIN32K: %s UNIMPLEMENTED\n", __FILE__,
__LINE__, __FUNCTION__ )
-
-
-
/*
* @unimplemented
@@ -1176,19 +1173,22 @@
}
/*
- * @unimplemented
+ * @implemented
*/
HSURF APIENTRY
NtGdiEngCreateDeviceSurface( IN DHSURF Surface,
IN SIZEL Size,
IN ULONG FormatVersion)
{
- UNIMPLEMENTED;
- return 0;
-}
-
-/*
- * @unimplemented
+ if ( FormatVersion <= BMF_8RLE &&
+ FormatVersion >= BMF_1BPP )
+ return EngCreateDeviceSurface(Surface, Size, FormatVersion);
+ else
+ return NULL;
+}
+
+/*
+ * @implemented
*/
HBITMAP APIENTRY
NtGdiEngCreateDeviceBitmap(
@@ -1196,8 +1196,12 @@
IN SIZEL sizl,
IN ULONG iFormatCompat)
{
- UNIMPLEMENTED;
- return NULL;
+ if ( ( sizl.cx > 0 && sizl.cy > 0 && ((sizl.cy * sizl.cx) <=
-1) ) &&
+ iFormatCompat <= BMF_8RLE &&
+ iFormatCompat >= BMF_1BPP )
+ return EngCreateDeviceBitmap(dhsurf, sizl, iFormatCompat);
+ else
+ return NULL;
}
@@ -1362,15 +1366,6 @@
UNIMPLEMENTED;
return FALSE;
}
-
-
-
-
-
-
-
-
-
/*
* @unimplemented