-#include "precomp.h"\r
-\r
-/*\r
- * @implemented\r
- */\r
-HBITMAP STDCALL\r
-CreateDIBSection(\r
- HDC hDC,\r
- CONST BITMAPINFO *BitmapInfo,\r
- UINT Usage,\r
- VOID **Bits,\r
- HANDLE hSection,\r
- DWORD dwOffset)\r
-{\r
- PBITMAPINFO pConvertedInfo;\r
- UINT ConvertedInfoSize;\r
- HBITMAP hBitmap = NULL;\r
-\r
- pConvertedInfo = ConvertBitmapInfo(BitmapInfo, Usage,\r
- &ConvertedInfoSize, FALSE);\r
- if (pConvertedInfo)\r
- {\r
- hBitmap = NtGdiCreateDIBSection(hDC, pConvertedInfo, Usage, Bits,\r
- hSection, dwOffset);\r
- if (BitmapInfo != pConvertedInfo)\r
- RtlFreeHeap(RtlGetProcessHeap(), 0, pConvertedInfo);\r
- }\r
-\r
- return hBitmap;\r
-}\r
-\r
-/*\r
- * @implemented\r
- */\r
-BOOL STDCALL\r
-StretchBlt(\r
- HDC hdcDest, /* handle to destination DC */\r
- int nXOriginDest, /* x-coord of destination upper-left corner */\r
- int nYOriginDest, /* y-coord of destination upper-left corner */\r
- int nWidthDest, /* width of destination rectangle */\r
- int nHeightDest, /* height of destination rectangle */\r
- HDC hdcSrc, /* handle to source DC */\r
- int nXOriginSrc, /* x-coord of source upper-left corner */\r
- int nYOriginSrc, /* y-coord of source upper-left corner */\r
- int nWidthSrc, /* width of source rectangle */\r
- int nHeightSrc, /* height of source rectangle */\r
- DWORD dwRop) /* raster operation code */\r
- \r
-{\r
- if ((nWidthDest != nWidthSrc) || (nHeightDest != nHeightSrc))\r
- {\r
- return NtGdiStretchBlt(hdcDest, nXOriginDest, nYOriginDest, nWidthDest,\r
- nHeightDest, hdcSrc, nXOriginSrc, nYOriginSrc,\r
- nWidthSrc, nHeightSrc, dwRop);\r
- }\r
- \r
- return NtGdiBitBlt(hdcDest, nXOriginDest, nYOriginDest, nWidthDest,\r
- nHeightDest, hdcSrc, nXOriginSrc, nYOriginSrc, dwRop);\r
-}\r
+#include "precomp.h"
+
+/*
+ * @implemented
+ */
+HBITMAP STDCALL
+CreateDIBSection(
+ HDC hDC,
+ CONST BITMAPINFO *BitmapInfo,
+ UINT Usage,
+ VOID **Bits,
+ HANDLE hSection,
+ DWORD dwOffset)
+{
+ PBITMAPINFO pConvertedInfo;
+ UINT ConvertedInfoSize;
+ HBITMAP hBitmap = NULL;
+
+ pConvertedInfo = ConvertBitmapInfo(BitmapInfo, Usage,
+ &ConvertedInfoSize, FALSE);
+ if (pConvertedInfo)
+ {
+ hBitmap = NtGdiCreateDIBSection(hDC, pConvertedInfo, Usage, Bits,
+ hSection, dwOffset);
+ if (BitmapInfo != pConvertedInfo)
+ RtlFreeHeap(RtlGetProcessHeap(), 0, pConvertedInfo);
+ }
+
+ return hBitmap;
+}
+
+/*
+ * @implemented
+ */
+BOOL STDCALL
+StretchBlt(
+ HDC hdcDest, /* handle to destination DC */
+ int nXOriginDest, /* x-coord of destination upper-left corner */
+ int nYOriginDest, /* y-coord of destination upper-left corner */
+ int nWidthDest, /* width of destination rectangle */
+ int nHeightDest, /* height of destination rectangle */
+ HDC hdcSrc, /* handle to source DC */
+ int nXOriginSrc, /* x-coord of source upper-left corner */
+ int nYOriginSrc, /* y-coord of source upper-left corner */
+ int nWidthSrc, /* width of source rectangle */
+ int nHeightSrc, /* height of source rectangle */
+ DWORD dwRop) /* raster operation code */
+
+{
+ if ((nWidthDest != nWidthSrc) || (nHeightDest != nHeightSrc))
+ {
+ return NtGdiStretchBlt(hdcDest, nXOriginDest, nYOriginDest, nWidthDest,
+ nHeightDest, hdcSrc, nXOriginSrc, nYOriginSrc,
+ nWidthSrc, nHeightSrc, dwRop);
+ }
+
+ return NtGdiBitBlt(hdcDest, nXOriginDest, nYOriginDest, nWidthDest,
+ nHeightDest, hdcSrc, nXOriginSrc, nYOriginSrc, dwRop);
+}