reactos/drivers/video/displays/vga/objects/transblt.c
Cameron Gutman c2d0d784c7 [USB-BRINGUP-TRUNK]
- Create a branch to do a proper merge of USB work from a trunk base instead of from cmake-bringup
- In the future, DO NOT under any circumstances branch another branch. This leads to merge problems!

svn path=/branches/usb-bringup-trunk/; revision=55018
2012-01-20 20:58:46 +00:00

38 lines
954 B
C

/*
* PROJECT: ReactOS VGA display driver
* LICENSE: GPL - See COPYING in the top level directory
* FILE: drivers/video/displays/vga/objects/transblt.c
* PURPOSE:
* PROGRAMMERS:
*/
#include <vgaddi.h>
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)
{
LONG dx, dy, sx, sy;
dx = abs(DestRect->right - DestRect->left);
dy = abs(DestRect->bottom - DestRect->top);
sx = abs(SourceRect->right - SourceRect->left);
sy = abs(SourceRect->bottom - SourceRect->top);
if (sx < dx) dx = sx;
if (sy < dy) dy = sy;
/* FIXME: adjust using SourceRect */
DIB_TransparentBltToVGA(DestRect->left, DestRect->top, dx, dy, Source->pvScan0, Source->lDelta, TransparentColor);
return TRUE;
}