reactos/win32ss/gdi/diblib/BitBlt_NOTPATCOPY.c
Amine Khaldi 527f2f9057 [SHELL/EXPERIMENTS]
* Create a branch for some evul shell experiments.

svn path=/branches/shell-experiments/; revision=61927
2014-02-02 19:37:27 +00:00

37 lines
780 B
C

#include "DibLib.h"
#define __USES_SOURCE 0
#define __USES_PATTERN 1
#define __USES_DEST 0
#define __USES_MASK 0
#define __FUNCTIONNAME BitBlt_NOTPATCOPY
#define _DibDoRop(pBltData, M, D, S, P) (~(P))
#include "DibLib_AllDstBPP.h"
extern PFN_DIBFUNCTION gapfnBitBlt_PATCOPY_Solid[];
VOID
FASTCALL
Dib_BitBlt_NOTPATCOPY(PBLTDATA pBltData)
{
/* Check for solid brush */
if (pBltData->ulSolidColor != 0xFFFFFFFF)
{
/* Prepare inverted colot */
pBltData->ulSolidColor = ~pBltData->ulSolidColor;
/* Use the solid version of PATCOPY! */
gapfnBitBlt_PATCOPY_Solid[pBltData->siDst.iFormat](pBltData);
}
else
{
/* Use the pattern version */
gapfnBitBlt_NOTPATCOPY[pBltData->siDst.iFormat](pBltData);
}
}