ReactOS 0.4.16-dev-297-gc569aee
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,
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 TRUE
Definition: types.h:120
#define APIENTRY
Definition: api.h:79
#define abs(i)
Definition: fconv.c:206
unsigned int BOOL
Definition: ntddk_ex.h:94
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
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
void DIB_TransparentBltToVGA(int x, int y, int w, int h, void *b, int Source_lDelta, ULONG trans)
Definition: vgavideo.c:536
FN_DrvTransparentBlt DrvTransparentBlt
_Reserved_ PVOID Reserved
Definition: winddi.h:3974