-#if 0 //Broken Stretch Code
- /* Fix me, stretch the bitmap to fit the screen. I'm not smart enough to do this :( */
- BITMAPINFO bmINFO;
- LPVOID pBits;
- bmINFO.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
- /* Get bits */
- NtGdiGetDIBits(hDC,
- WinSta->hbmWallpaper,
- 0,
- WinSta->cyWallpaper,
- NULL, // what goes here?
- &bmINFO,
- DIB_RGB_COLORS);
-
- bmINFO.bmiHeader.biCompression = BI_RGB;
-
- pBits = ExAllocatePool(PagedPool,bmINFO.bmiHeader.biSizeImage);
-
- if(pBits == NULL)
- {
- doPatBlt = TRUE;
- }
- else
- {
-
- NtGdiGetDIBits(hDC,
- WinSta->hbmWallpaper,
- 0,
- WinSta->cyWallpaper,
- (LPVOID)pBits, // what goes here?
- &bmINFO,
- DIB_RGB_COLORS);
- DPRINT1("Before Draw\n");
-
- /* Stretch it to fit the screen */
- NtGdiStretchDIBits(hDC,
- 0,
- 0,
- Rect.right,
- Rect.bottom,
- 0,
- 0,
- WinSta->cxWallpaper,
- WinSta->cyWallpaper,
- (LPVOID)pBits, // get this from NtGdiGetDiBits?
- &bmINFO, // get this from NtGdiGetDiBits?
- DIB_RGB_COLORS,
- SRCCOPY);
- ExFreePool(pBits);
- }
-#else
- /* Draw nothing */
- doPatBlt = TRUE;
-#endif //Broken Stretch Code