mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:25:39 +00:00
BitBlt
Make it act bit more like windows, use PatBlt instead for BitBlt for no ROP source for it bit faster Thx irc Goplat found my bug in the macro. svn path=/trunk/; revision=33876
This commit is contained in:
parent
b879687075
commit
48150abcea
2 changed files with 12 additions and 0 deletions
|
@ -30,6 +30,9 @@ typedef INT
|
|||
#define METAFILE_MEMORY 1
|
||||
#define METAFILE_DISK 2
|
||||
|
||||
/* MACRO ********************************************************************/
|
||||
#define ROP_USES_SOURCE(Rop) ((Rop << 2) ^ Rop) & 0xCC0000
|
||||
|
||||
/* TYPES *********************************************************************/
|
||||
|
||||
// Based on wmfapi.h and Wine.
|
||||
|
|
|
@ -124,6 +124,9 @@ CreateDIBSection(
|
|||
return hBitmap;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
|
@ -139,6 +142,12 @@ BitBlt(HDC hdcDest, /* handle to destination DC */
|
|||
int nYSrc, /* y-coordinate of source upper-left corner */
|
||||
DWORD dwRop) /* raster operation code */
|
||||
{
|
||||
/* use patBlt for no source blt Like windows does */
|
||||
if (!ROP_USES_SOURCE(dwRop))
|
||||
{
|
||||
return PatBlt(hdcDest, nXOriginDest, nYOriginDest, nWidthDest, nHeightDest, dwRop);
|
||||
}
|
||||
|
||||
return NtGdiBitBlt(hdcDest,
|
||||
nXOriginDest,
|
||||
nYOriginDest,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue