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

Go to the source code of this file.

Functions

BOOL APIENTRY DrvTransparentBlt (IN SURFOBJ *Dest, IN SURFOBJ *Source, IN CLIPOBJ *Clip, IN XLATEOBJ *ColorTranslation, IN RECTL *DestRect, IN RECTL *SourceRect, IN ULONG TransparentColor, IN ULONG Reserved)
 

Function Documentation

◆ DrvTransparentBlt()

BOOL APIENTRY DrvTransparentBlt ( IN SURFOBJ Dest,
IN SURFOBJ Source,
IN CLIPOBJ Clip,
IN XLATEOBJ ColorTranslation,
IN RECTL DestRect,
IN RECTL SourceRect,
IN ULONG  TransparentColor,
IN ULONG  Reserved 
)

Definition at line 12 of file transblt.c.

21{
22 LONG dx, dy, sx, sy;
23
24 dx = abs(DestRect->right - DestRect->left);
25 dy = abs(DestRect->bottom - DestRect->top);
26
27 sx = abs(SourceRect->right - SourceRect->left);
28 sy = abs(SourceRect->bottom - SourceRect->top);
29
30 if (sx < dx) dx = sx;
31 if (sy < dy) dy = sy;
32
33 /* FIXME: adjust using SourceRect */
34 DIB_TransparentBltToVGA(DestRect->left, DestRect->top, dx, dy, Source->pvScan0, Source->lDelta, TransparentColor);
35
36 return TRUE;
37}
#define TRUE
Definition: types.h:120
#define abs(i)
Definition: fconv.c:206
GLint dy
Definition: linetemp.h:97
GLint dx
Definition: linetemp.h:97
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
Definition: ndis.h:3169
long LONG
Definition: pedump.c:60
void DIB_TransparentBltToVGA(int x, int y, int w, int h, void *b, int Source_lDelta, ULONG trans)
Definition: vgavideo.c:536