Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers...
[reactos.git] / win32ss / gdi / diblib / SrcPatBlt.c
diff --git a/win32ss/gdi/diblib/SrcPatBlt.c b/win32ss/gdi/diblib/SrcPatBlt.c
new file mode 100644 (file)
index 0000000..8cb0c40
--- /dev/null
@@ -0,0 +1,37 @@
+
+#include "DibLib.h"
+
+#define __USES_SOURCE 1
+#define __USES_PATTERN 1
+#define __USES_DEST 0
+#define __USES_MASK 0
+
+#define __FUNCTIONNAME SrcPatBlt
+
+#define _DibDoRop(pBltData, M, D, S, P) pBltData->apfnDoRop[0](0,S,P)
+
+#include "DibLib_AllSrcBPP.h"
+
+#undef __FUNCTIONNAME
+#define __FUNCTIONNAME SrcPatBlt_Solid
+#define __USES_SOLID_BRUSH 1
+#include "DibLib_AllSrcBPP.h"
+
+VOID
+FASTCALL
+Dib_SrcPatBlt(PBLTDATA pBltData)
+{
+    /* Check for solid brush */
+    if (pBltData->ulSolidColor != 0xFFFFFFFF)
+    {
+        /* Use the solid version of PATCOPY! */
+        gapfnSrcPatBlt_Solid[pBltData->siDst.iFormat][pBltData->siSrc.iFormat](pBltData);
+    }
+    else
+    {
+        /* Use the pattern version */
+        gapfnSrcPatBlt[pBltData->siDst.iFormat][pBltData->siSrc.iFormat](pBltData);
+    }
+}
+
+