- Convert coordinates of src and dst rectangle in TransparentBlt

- Use a descriptive debug print when creation of a XLateObj failed

svn path=/trunk/; revision=39480
This commit is contained in:
Gregor Schneider 2009-02-08 09:25:28 +00:00
parent f5a1c37e1b
commit efa5b443b0

View file

@ -144,7 +144,7 @@ NtGdiAlphaBlend(
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 @@ NtGdiBitBlt(
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 @@ NtGdiTransparentBlt(
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))
{