From 988b4f0295182644719e2f3c7c6ddae34fe12280 Mon Sep 17 00:00:00 2001 From: NicJA Date: Sun, 21 Aug 2016 22:14:15 +0000 Subject: [PATCH] if the vsprite is a BOb, and has ImageShadow data, use BltMaskBitMapRastPort(); git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@52873 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- rom/graphics/drawglist.c | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/rom/graphics/drawglist.c b/rom/graphics/drawglist.c index b76f77e79e..dee05c24c4 100644 --- a/rom/graphics/drawglist.c +++ b/rom/graphics/drawglist.c @@ -136,11 +136,30 @@ rp, FALSE, GfxBase); - + /* FIXME: Wrong minterm is used. * Need to implement mintern '0xe0'. */ - BltBitMapRastPort(CurVSprite->IntVSprite->ImageData, + +#if (0) +#define VS_MINTERM 0x0e0 +#else +/* should be 0xe0! */ +#define VS_MINTERM 0x0c0 +#endif + if ((CurVSprite->VSBob) && (CurVSprite->VSBob->ImageShadow)) + BltMaskBitMapRastPort(CurVSprite->IntVSprite->ImageData, + 0, + 0, + rp, + CurVSprite->X, + CurVSprite->Y, + CurVSprite->Width << 4, + CurVSprite->Height, + VS_MINTERM, + (PLANEPTR)CurVSprite->VSBob->ImageShadow); + else + BltBitMapRastPort(CurVSprite->IntVSprite->ImageData, 0, 0, rp, @@ -148,7 +167,9 @@ CurVSprite->Y, CurVSprite->Width << 4, CurVSprite->Height, - 0x0c0 /* should be 0xe0! */); + VS_MINTERM ); + +#undef VS_MINTERM /* * I will need to know the vsprite's coordinates * that it has now the next time as well for clearing -- 2.11.4.GIT