ReactOS 0.4.16-dev-92-g0c2cdca
MaskCopy.c
Go to the documentation of this file.
1
2#include "DibLib.h"
3
6
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
VOID FASTCALL Dib_BitBlt_BLACKNESS(PBLTDATA pBltData)
Definition: BitBlt_other.c:8
VOID FASTCALL Dib_BitBlt_WHITENESS(PBLTDATA pBltData)
Definition: BitBlt_other.c:17
VOID(FASTCALL * PFN_DIBFUNCTION)(PBLTDATA pBltData)
VOID FASTCALL Dib_MaskCopy(PBLTDATA pBltData)
Definition: MaskCopy.c:9
PFN_DIBFUNCTION gapfnBitBlt_SRCCOPY[7][7]
PFN_DIBFUNCTION gapfnBitBlt_SRCINVERT[7][7]
#define FASTCALL
Definition: nt_native.h:50
XLATEOBJ * pxlo
SURFINFO siSrc
SURFINFO siDst
SURFINFO siMsk
ULONG iFormat
#define BLACKNESS
Definition: wingdi.h:323
#define WHITENESS
Definition: wingdi.h:337
#define MAKEROP4(f, b)
Definition: wingdi.h:2946