diff options
author | 2021-04-01 21:01:36 +0200 | |
---|---|---|
committer | 2021-04-01 21:01:36 +0200 | |
commit | 0d897d07e65826352fba147ce644a901b2cce7bc (patch) | |
tree | d221f6ed4d5664dbdf0d184a7b0d8c58c8355d2e /src/mame/video/namcos2_sprite.cpp | |
parent | 91fdb8adcaed4c131bcc2fbb57b4ec19bf925d40 (diff) |
namcos2/c355 sprites: color 0xfe is for a palette offset instead of shadow [dink, hap]
Diffstat (limited to 'src/mame/video/namcos2_sprite.cpp')
-rw-r--r-- | src/mame/video/namcos2_sprite.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mame/video/namcos2_sprite.cpp b/src/mame/video/namcos2_sprite.cpp index 2e6f48abf91..a6047f05add 100644 --- a/src/mame/video/namcos2_sprite.cpp +++ b/src/mame/video/namcos2_sprite.cpp @@ -50,7 +50,6 @@ void namcos2_sprite_device::zdrawgfxzoom( if (gfx) { device_palette_interface &palette = gfx->palette(); - const int shadow_offset = (palette.shadows_enabled()) ? palette.entries() : 0; const pen_t *pal = &palette.pen(gfx->colorbase() + gfx->granularity() * (color % gfx->colors())); const u8 *source_base = gfx->get_data(code % gfx->elements()); const int sprite_screen_height = (scaley * gfx->height() + 0x8000) >> 16; @@ -160,9 +159,9 @@ void namcos2_sprite_device::zdrawgfxzoom( { if (pri[x] <= zpos) { - if (color == 0xf && c==0xfe && shadow_offset) + if (color == 0xf && c == 0xfe) { - dest[x] |= shadow_offset; + dest[x] |= 0x800; } else { |