ReactOS 0.4.16-dev-297-gc569aee
copybits.c File Reference
#include <vgaddi.h>
Include dependency graph for copybits.c:

Go to the source code of this file.

Functions

BOOL APIENTRY DrvCopyBits (OUT SURFOBJ *DestObj, IN SURFOBJ *SourceObj, IN CLIPOBJ *ClipObj, IN XLATEOBJ *XLateObj, IN RECTL *DestRectL, IN POINTL *SrcPointL)
 

Function Documentation

◆ DrvCopyBits()

BOOL APIENTRY DrvCopyBits ( OUT SURFOBJ DestObj,
IN SURFOBJ SourceObj,
IN CLIPOBJ ClipObj,
IN XLATEOBJ XLateObj,
IN RECTL DestRectL,
IN POINTL SrcPointL 
)

Definition at line 12 of file copybits.c.

19{
20 BOOL Done = FALSE;
21
22 if (STYPE_BITMAP == DestObj->iType && BMF_4BPP == DestObj->iBitmapFormat &&
23 STYPE_DEVICE == SourceObj->iType)
24 {
25 /* Screen to 4 BPP DIB */
26 DIB_BltFromVGA(SrcPointL->x, SrcPointL->y,
27 DestRectL->right - DestRectL->left,
28 DestRectL->bottom - DestRectL->top,
29 DestObj->pvScan0, DestObj->lDelta);
30 Done = TRUE;
31 }
32 else if (STYPE_DEVICE == DestObj->iType &&
33 STYPE_BITMAP == SourceObj->iType && BMF_4BPP == SourceObj->iBitmapFormat)
34 {
35 /* 4 BPP DIB to Screen */
36 DIB_BltToVGA(DestRectL->left, DestRectL->top,
37 DestRectL->right - DestRectL->left,
38 DestRectL->bottom - DestRectL->top,
39 SourceObj->pvScan0, SourceObj->lDelta,
40 0);
41 Done = TRUE;
42 }
43
44 return Done;
45}
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
unsigned int BOOL
Definition: ntddk_ex.h:94
#define STYPE_DEVICE
Definition: lmshare.h:24
void DIB_BltToVGA(int x, int y, int w, int h, void *b, int Source_lDelta, int StartMod)
Definition: vgavideo.c:447
void DIB_BltFromVGA(int x, int y, int w, int h, void *b, int Dest_lDelta)
Definition: vgavideo.c:352
#define STYPE_BITMAP
Definition: winddi.h:1175
#define BMF_4BPP
Definition: winddi.h:356