ReactOS  0.4.14-dev-606-g14ebc0b
MaskCopy.c File Reference
#include "DibLib.h"
Include dependency graph for MaskCopy.c:

Go to the source code of this file.

Functions

VOID FASTCALL Dib_MaskCopy (PBLTDATA pBltData)
 

Variables

PFN_DIBFUNCTION gapfnBitBlt_SRCCOPY [7][7]
 
PFN_DIBFUNCTION gapfnBitBlt_SRCINVERT [7][7]
 

Function Documentation

◆ Dib_MaskCopy()

VOID FASTCALL Dib_MaskCopy ( PBLTDATA  pBltData)

Definition at line 9 of file MaskCopy.c.

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 }
SURFINFO siDst
SURFINFO siMsk
ULONG iFormat
#define MAKEROP4(f, b)
Definition: wingdi.h:2945
PFN_DIBFUNCTION gapfnBitBlt_SRCINVERT[7][7]
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
PFN_DIBFUNCTION gapfnBitBlt_SRCCOPY[7][7]
#define BLACKNESS
Definition: wingdi.h:322
SURFINFO siSrc
XLATEOBJ * pxlo

Variable Documentation

◆ gapfnBitBlt_SRCCOPY

PFN_DIBFUNCTION gapfnBitBlt_SRCCOPY[7][7]

Referenced by Dib_BitBlt_SRCCOPY(), and Dib_MaskCopy().

◆ gapfnBitBlt_SRCINVERT

PFN_DIBFUNCTION gapfnBitBlt_SRCINVERT[7][7]