migrate substitution keywords to SVN
[reactos.git] / reactos / lib / gdi32 / objects / bitblt.c
1 /* $Id$
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS system libraries
5 * FILE: lib/gdi32/object/bitblt.c
6 * PURPOSE:
7 * PROGRAMMER:
8 */
9
10 #include "precomp.h"
11
12 #include <debug.h>
13
14
15 /*
16 * @implemented
17 */
18 BOOL
19 STDCALL
20 StretchBlt(
21 HDC hdcDest, // handle to destination DC
22 int nXOriginDest, // x-coord of destination upper-left corner
23 int nYOriginDest, // y-coord of destination upper-left corner
24 int nWidthDest, // width of destination rectangle
25 int nHeightDest, // height of destination rectangle
26 HDC hdcSrc, // handle to source DC
27 int nXOriginSrc, // x-coord of source upper-left corner
28 int nYOriginSrc, // y-coord of source upper-left corner
29 int nWidthSrc, // width of source rectangle
30 int nHeightSrc, // height of source rectangle
31 DWORD dwRop // raster operation code
32 )
33 {
34 if ((nWidthDest != nWidthSrc) || (nHeightDest != nHeightSrc))
35 {
36 return NtGdiStretchBlt(hdcDest, nXOriginDest, nYOriginDest, nWidthDest, nHeightDest,
37 hdcSrc, nXOriginSrc, nYOriginSrc, nWidthSrc, nHeightSrc, dwRop);
38 }
39
40 return NtGdiBitBlt(hdcDest, nXOriginDest, nYOriginDest, nWidthDest, nHeightDest, hdcSrc,
41 nXOriginSrc, nYOriginSrc, dwRop);
42 }