Previous 199869 Revisions Next

r31956 Saturday 6th September, 2014 at 21:41:38 UTC by O. Galibert
better understanding of the blending (nw)
[src/mame/drivers]raiden2.c

trunk/src/mame/drivers/raiden2.c
r31955r31956
10841084   // Tuned for raiden2
10851085   const UINT8 alpha_active[0x20] = { // MSB first
10861086      //00    08    10    18    20    28    30    38    40    48    50    58    60    68    70    78
1087      0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2f, 0x3f, 0x73, 0xff, 0xfc, 0xf0, 0x04, 0x47,
1088      0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xfb, 0x08
1087      0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x3f, 0x73, 0xff, 0x7c, 0xff, 0xff, 0x4f
10891088   };
10901089
10911090   const pen_t *pens = &m_palette->pen(0);
r31955r31956
10991098            val &= 0x07ff;
11001099            int page = val >> 4;
11011100            bool active = false;
1102            if((val & 0xf) == 0xe && (alpha_active[page >> 3] & (0x80 >> (page & 7))))
1101            if((val & 0x8) == 0x8 && (alpha_active[page >> 3] & (0x80 >> (page & 7))))
11031102               active = true;
1104            if((val & 0x8) == 0x8 && (alpha_active[0x10+(page >> 3)] & (0x80 >> (page & 7))))
1105               active = true;
11061103
11071104            if(page == ccol)
11081105               active = !active;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team