ReactOS  0.4.15-dev-439-g292f67a
MaskCopy.c
Go to the documentation of this file.
1 
2 #include "DibLib.h"
3 
6 
7 VOID
10 {
11  pBltData->siSrc = pBltData->siMsk;
12 
13  /* Create an XLATEOBJ */
14  pBltData->pxlo = 0;// FIXME: use 1bpp -> destbpp
15 
16  /* 4 possibilities... */
17  if (pBltData->rop4 == MAKEROP4(BLACKNESS, WHITENESS))
18  {
19  gapfnBitBlt_SRCCOPY[pBltData->siDst.iFormat][pBltData->siSrc.iFormat](pBltData);
20  }
21  else if (pBltData->rop4 == MAKEROP4(WHITENESS, BLACKNESS))
22  {
23  gapfnBitBlt_SRCINVERT[pBltData->siDst.iFormat][pBltData->siSrc.iFormat](pBltData);
24  }
25  else if (pBltData->rop4 == MAKEROP4(BLACKNESS, BLACKNESS))
26  {
27  Dib_BitBlt_BLACKNESS(pBltData);
28  }
29  else // if (pBltData->rop4 == MAKEROP4(WHITENESS, WHITENESS))
30  {
31  Dib_BitBlt_WHITENESS(pBltData);
32  }
33 }
34 
35 
SURFINFO siDst
#define FASTCALL
Definition: nt_native.h:50
SURFINFO siMsk
ULONG iFormat
#define MAKEROP4(f, b)
Definition: wingdi.h:2945
PFN_DIBFUNCTION gapfnBitBlt_SRCINVERT[7][7]
VOID(FASTCALL * PFN_DIBFUNCTION)(PBLTDATA pBltData)
VOID FASTCALL Dib_BitBlt_BLACKNESS(PBLTDATA pBltData)
Definition: BitBlt_other.c:8
VOID FASTCALL Dib_BitBlt_WHITENESS(PBLTDATA pBltData)
Definition: BitBlt_other.c:17
#define WHITENESS
Definition: wingdi.h:336
VOID FASTCALL Dib_MaskCopy(PBLTDATA pBltData)
Definition: MaskCopy.c:9
PFN_DIBFUNCTION gapfnBitBlt_SRCCOPY[7][7]
#define BLACKNESS
Definition: wingdi.h:322
SURFINFO siSrc
XLATEOBJ * pxlo