ReactOS  0.4.15-dev-489-g75a0787
transblt.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS VGA display driver
3  * LICENSE: GPL - See COPYING in the top level directory
4  * FILE: win32ss/drivers/displays/vga/objects/transblt.c
5  * PURPOSE:
6  * PROGRAMMERS:
7  */
8 
9 #include <vgaddi.h>
10 
13  IN SURFOBJ* Dest,
14  IN SURFOBJ* Source,
15  IN CLIPOBJ* Clip,
16  IN XLATEOBJ* ColorTranslation,
17  IN RECTL* DestRect,
18  IN RECTL* SourceRect,
19  IN ULONG TransparentColor,
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 abs(i)
Definition: fconv.c:206
#define IN
Definition: typedefs.h:39
#define TRUE
Definition: types.h:120
GLint dy
Definition: linetemp.h:97
unsigned int BOOL
Definition: ntddk_ex.h:94
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
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
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: transblt.c:12
GLint dx
Definition: linetemp.h:97
unsigned int ULONG
Definition: retypes.h:1
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
Definition: ndis.h:3167
#define APIENTRY
Definition: api.h:79