ReactOS 0.4.16-dev-297-gc569aee
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}
VOID FASTCALL Dib_BitBlt_BLACKNESS(PBLTDATA pBltData)
Definition: BitBlt_other.c:8
VOID FASTCALL Dib_BitBlt_WHITENESS(PBLTDATA pBltData)
Definition: BitBlt_other.c:17
PFN_DIBFUNCTION gapfnBitBlt_SRCCOPY[7][7]
PFN_DIBFUNCTION gapfnBitBlt_SRCINVERT[7][7]
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

Variable Documentation

◆ gapfnBitBlt_SRCCOPY

PFN_DIBFUNCTION gapfnBitBlt_SRCCOPY[7][7]
extern

Referenced by Dib_BitBlt_SRCCOPY(), and Dib_MaskCopy().

◆ gapfnBitBlt_SRCINVERT

PFN_DIBFUNCTION gapfnBitBlt_SRCINVERT[7][7]
extern