mirror of
https://github.com/reactos/reactos.git
synced 2025-07-06 21:31:23 +00:00
- Handle the case where no BrushOrigin is given even under EngStretchBlt and EngMaskBitBlt.
svn path=/trunk/; revision=9067
This commit is contained in:
parent
565d0c19a4
commit
d0003f99f5
1 changed files with 15 additions and 5 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: bitblt.c,v 1.50 2004/04/09 22:27:39 weiden Exp $
|
/* $Id: bitblt.c,v 1.51 2004/04/10 00:58:14 navaraf Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -739,8 +739,13 @@ EngStretchBlt(
|
||||||
OutputRect.top = prclDest->top + Translate.y;
|
OutputRect.top = prclDest->top + Translate.y;
|
||||||
OutputRect.bottom = prclDest->bottom + Translate.y;
|
OutputRect.bottom = prclDest->bottom + Translate.y;
|
||||||
|
|
||||||
AdjustedBrushOrigin.x = BrushOrigin->x + Translate.x;
|
if(BrushOrigin)
|
||||||
AdjustedBrushOrigin.y = BrushOrigin->y + Translate.y;
|
{
|
||||||
|
AdjustedBrushOrigin.x = BrushOrigin->x + Translate.x;
|
||||||
|
AdjustedBrushOrigin.y = BrushOrigin->y + Translate.y;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
AdjustedBrushOrigin = Translate;
|
||||||
|
|
||||||
if (NULL != OutputObj)
|
if (NULL != OutputObj)
|
||||||
{
|
{
|
||||||
|
@ -1129,8 +1134,13 @@ EngMaskBitBlt(SURFOBJ *DestObj,
|
||||||
OutputRect.top = DestRect->top + Translate.y;
|
OutputRect.top = DestRect->top + Translate.y;
|
||||||
OutputRect.bottom = DestRect->bottom + Translate.y;
|
OutputRect.bottom = DestRect->bottom + Translate.y;
|
||||||
|
|
||||||
AdjustedBrushOrigin.x = BrushOrigin->x + Translate.x;
|
if(BrushOrigin)
|
||||||
AdjustedBrushOrigin.y = BrushOrigin->y + Translate.y;
|
{
|
||||||
|
AdjustedBrushOrigin.x = BrushOrigin->x + Translate.x;
|
||||||
|
AdjustedBrushOrigin.y = BrushOrigin->y + Translate.y;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
AdjustedBrushOrigin = Translate;
|
||||||
|
|
||||||
if (NULL != OutputObj)
|
if (NULL != OutputObj)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue