Author: gschneider
Date: Sun Feb 8 03:25:28 2009
New Revision: 39480
URL:
http://svn.reactos.org/svn/reactos?rev=39480&view=rev
Log:
- Convert coordinates of src and dst rectangle in TransparentBlt
- Use a descriptive debug print when creation of a XLateObj failed
Modified:
trunk/reactos/subsystems/win32/win32k/objects/bitblt.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/bitblt.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/bitblt.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/bitblt.c [iso-8859-1] Sun Feb 8
03:25:28 2009
@@ -144,7 +144,7 @@
if (XlateObj == (XLATEOBJ*)-1)
{
- DPRINT1("error!!!\n");
+ DPRINT1("couldn't create XlateObj\n");
SetLastWin32Error(ERROR_NO_SYSTEM_RESOURCES);
XlateObj = NULL;
Status = FALSE;
@@ -299,7 +299,7 @@
if (XlateObj == (XLATEOBJ*)-1)
{
- DPRINT1("error!\n");
+ DPRINT1("couldn't create XlateObj\n");
SetLastWin32Error(ERROR_NO_SYSTEM_RESOURCES);
XlateObj = NULL;
goto cleanup;
@@ -458,10 +458,13 @@
rcDest.top = yDst;
rcDest.right = rcDest.left + cxDst;
rcDest.bottom = rcDest.top + cyDst;
+ IntLPtoDP(DCDest, (LPPOINT)&rcDest, 2);
+
rcSrc.left = xSrc;
rcSrc.top = ySrc;
rcSrc.right = rcSrc.left + cxSrc;
rcSrc.bottom = rcSrc.top + cySrc;
+ IntLPtoDP(DCSrc, (LPPOINT)&rcSrc, 2);
if((cxDst != cxSrc) || (cyDst != cySrc))
{