mirror of
https://github.com/reactos/reactos.git
synced 2024-09-09 20:30:04 +00:00
- 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:
parent
f5a1c37e1b
commit
efa5b443b0
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue