mirror of
https://github.com/holub/mame
synced 2025-07-10 12:15:31 +03:00
better understanding of the blending (nw)
This commit is contained in:
parent
efbcbd8f28
commit
cdbbdfbb77
@ -1084,8 +1084,7 @@ void raiden2_state::blend_layer(bitmap_rgb32 &bitmap, const rectangle &cliprect,
|
||||
// Tuned for raiden2
|
||||
const UINT8 alpha_active[0x20] = { // MSB first
|
||||
//00 08 10 18 20 28 30 38 40 48 50 58 60 68 70 78
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2f, 0x3f, 0x73, 0xff, 0xfc, 0xf0, 0x04, 0x47,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xfb, 0x08
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x3f, 0x73, 0xff, 0x7c, 0xff, 0xff, 0x4f
|
||||
};
|
||||
|
||||
const pen_t *pens = &m_palette->pen(0);
|
||||
@ -1099,9 +1098,7 @@ void raiden2_state::blend_layer(bitmap_rgb32 &bitmap, const rectangle &cliprect,
|
||||
val &= 0x07ff;
|
||||
int page = val >> 4;
|
||||
bool active = false;
|
||||
if((val & 0xf) == 0xe && (alpha_active[page >> 3] & (0x80 >> (page & 7))))
|
||||
active = true;
|
||||
if((val & 0x8) == 0x8 && (alpha_active[0x10+(page >> 3)] & (0x80 >> (page & 7))))
|
||||
if((val & 0x8) == 0x8 && (alpha_active[page >> 3] & (0x80 >> (page & 7))))
|
||||
active = true;
|
||||
|
||||
if(page == ccol)
|
||||
|
Loading…
Reference in New Issue
Block a user