Author: greatlrd
Date: Fri Jun 6 19:27:13 2008
New Revision: 33874
URL:
http://svn.reactos.org/svn/reactos?rev=33874&view=rev
Log:
Change BitBlt so it act simluare to windows, but this changes will break trunk graphic,
Waring Waring Waring Waring do not merge down this change to trunk until NtGdiPatBlt are
bugfixed
it seam it contain allot of graphic glitch and it seam it does not call on the hw gdi
acclartions of PatBlt
and some other issue.
Modified:
branches/win32k-gdi-dx/dll/win32/gdi32/include/gdi32p.h
branches/win32k-gdi-dx/dll/win32/gdi32/objects/bitmap.c
Modified: branches/win32k-gdi-dx/dll/win32/gdi32/include/gdi32p.h
URL:
http://svn.reactos.org/svn/reactos/branches/win32k-gdi-dx/dll/win32/gdi32/i…
==============================================================================
--- branches/win32k-gdi-dx/dll/win32/gdi32/include/gdi32p.h [iso-8859-1] (original)
+++ branches/win32k-gdi-dx/dll/win32/gdi32/include/gdi32p.h [iso-8859-1] Fri Jun 6
19:27:13 2008
@@ -24,6 +24,10 @@
INT iFunction,
HANDLE hPageQuery
);
+
+/* MACRO ********************************************************************/
+#define ROP_USES_SOURCE(Rop) (Rop & 0x00330000)
+
/* DEFINES *******************************************************************/
Modified: branches/win32k-gdi-dx/dll/win32/gdi32/objects/bitmap.c
URL:
http://svn.reactos.org/svn/reactos/branches/win32k-gdi-dx/dll/win32/gdi32/o…
==============================================================================
--- branches/win32k-gdi-dx/dll/win32/gdi32/objects/bitmap.c [iso-8859-1] (original)
+++ branches/win32k-gdi-dx/dll/win32/gdi32/objects/bitmap.c [iso-8859-1] Fri Jun 6
19:27:13 2008
@@ -139,6 +139,12 @@
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,
@@ -447,8 +453,9 @@
ColorUse,
lpbmi->bmiHeader.biSizeImage,
lpbmi->bmiHeader.biSize,
- FALSE,
+ TRUE,
NULL);
}
+