- Move StretchDIBits out of stubs. Add more notes.
authorJames Tabor <james.tabor@reactos.org>
Mon, 17 Nov 2008 13:55:00 +0000 (13:55 +0000)
committerJames Tabor <james.tabor@reactos.org>
Mon, 17 Nov 2008 13:55:00 +0000 (13:55 +0000)
svn path=/trunk/; revision=37404

reactos/dll/win32/gdi32/misc/stubs.c
reactos/dll/win32/gdi32/objects/bitmap.c
reactos/dll/win32/gdi32/objects/dc.c

index 78eeb39..cff3e0d 100644 (file)
 #define UNIMPLEMENTED DbgPrint("GDI32: %s is unimplemented, please try again later.\n", __FUNCTION__);
 
 
-/*
- * @unimplemented
- */
-int
-STDCALL
-StretchDIBits(HDC hdc,
-              int XDest,
-              int YDest,
-              int nDestWidth,
-              int nDestHeight,
-              int XSrc,
-              int YSrc,
-              int nSrcWidth,
-              int nSrcHeight,
-              CONST VOID *lpBits,
-              CONST BITMAPINFO *lpBitsInfo,
-              UINT iUsage,
-              DWORD dwRop)
-
-{
-    /* FIXME share memory */
-    return NtGdiStretchDIBitsInternal(hdc, XDest, YDest, nDestWidth, nDestHeight, XSrc, YSrc,
-                              nSrcWidth, nSrcHeight, (LPBYTE)lpBits, (LPBITMAPINFO)lpBitsInfo, (DWORD)iUsage, dwRop, 0, 0, NULL);
-}
-
 /*
  * @unimplemented
  */
index 105ba17..5e38b05 100644 (file)
@@ -315,7 +315,7 @@ CreateDIBitmap( HDC hDC,
                                     0);
 }
 
-#if 0
+#if 0 // FIXME!!! This is a victim of the Win32k Initialization BUG!!!!!
 /*
  * @implemented
  */
@@ -461,4 +461,29 @@ SetDIBitsToDevice(
 }
 
 
+/*
+ * @unimplemented
+ */
+int
+STDCALL
+StretchDIBits(HDC hdc,
+              int XDest,
+              int YDest,
+              int nDestWidth,
+              int nDestHeight,
+              int XSrc,
+              int YSrc,
+              int nSrcWidth,
+              int nSrcHeight,
+              CONST VOID *lpBits,
+              CONST BITMAPINFO *lpBitsInfo,
+              UINT iUsage,
+              DWORD dwRop)
+
+{
+   DPRINT("StretchDIBits %x : %x\n", lpBits, lpBitsInfo);
+    /* FIXME share memory */
+    return NtGdiStretchDIBitsInternal(hdc, XDest, YDest, nDestWidth, nDestHeight, XSrc, YSrc,
+                              nSrcWidth, nSrcHeight, (LPBYTE)lpBits, (LPBITMAPINFO)lpBitsInfo, (DWORD)iUsage, dwRop, 0, 0, NULL);
+}
 
index 5de287b..d6783cd 100644 (file)
@@ -507,7 +507,7 @@ GetDeviceCaps(HDC hDC,
   {
      // HAX!!!!
      // Due to winlogon process/thread mapping issues we have this hax!
-     //
+     // FIXME!!! This is a victim of the Win32k Initialization BUG!!!!!
      return NtGdiGetDeviceCaps(hDC,i);
 
      if (!GdiGetHandleUserData((HGDIOBJ) hDC, GDI_OBJECT_TYPE_DC, (PVOID) &Dc_Attr))