1*c2c66affSColin Finck 2*c2c66affSColin Finck #include "DibLib.h" 3*c2c66affSColin Finck 4*c2c66affSColin Finck #define __USES_SOURCE 0 5*c2c66affSColin Finck #define __USES_PATTERN 1 6*c2c66affSColin Finck #define __USES_DEST 1 7*c2c66affSColin Finck #define __USES_MASK 1 8*c2c66affSColin Finck 9*c2c66affSColin Finck #define __FUNCTIONNAME MaskPatPaint 10*c2c66affSColin Finck 11*c2c66affSColin Finck #define _DibDoRop(pBltData, M, D, S, P) pBltData->apfnDoRop[M](D,0,P) 12*c2c66affSColin Finck 13*c2c66affSColin Finck #include "DibLib_AllDstBPP.h" 14*c2c66affSColin Finck 15*c2c66affSColin Finck #undef __FUNCTIONNAME 16*c2c66affSColin Finck #define __FUNCTIONNAME MaskPatPaint_Solid 17*c2c66affSColin Finck #define __USES_SOLID_BRUSH 1 18*c2c66affSColin Finck #include "DibLib_AllDstBPP.h" 19*c2c66affSColin Finck 20*c2c66affSColin Finck VOID 21*c2c66affSColin Finck FASTCALL Dib_MaskPatPaint(PBLTDATA pBltData)22*c2c66affSColin FinckDib_MaskPatPaint(PBLTDATA pBltData) 23*c2c66affSColin Finck { 24*c2c66affSColin Finck /* Check for solid brush */ 25*c2c66affSColin Finck if (pBltData->ulSolidColor != 0xFFFFFFFF) 26*c2c66affSColin Finck { 27*c2c66affSColin Finck /* Use the solid version of PATCOPY! */ 28*c2c66affSColin Finck gapfnMaskPatPaint_Solid[pBltData->siDst.iFormat](pBltData); 29*c2c66affSColin Finck } 30*c2c66affSColin Finck else 31*c2c66affSColin Finck { 32*c2c66affSColin Finck /* Use the pattern version */ 33*c2c66affSColin Finck gapfnMaskPatPaint[pBltData->siDst.iFormat](pBltData); 34*c2c66affSColin Finck } 35*c2c66affSColin Finck } 36*c2c66affSColin Finck 37*c2c66affSColin Finck 38*c2c66affSColin Finck 39