system16.c: sync shadow/hilight with non-bootleg code, should fix out-of-range pixels (nw)

This commit is contained in:
Alex W. Jackson 2014-06-16 16:54:10 +00:00
parent 4ca5f90560
commit 9467daa702
2 changed files with 5 additions and 5 deletions

View File

@ -96,7 +96,7 @@
#include "sound/rf5c68.h"
#include "video/segaic16.h"
#define SHADOW_COLORS_MULTIPLIER 2
#define SHADOW_COLORS_MULTIPLIER 3
INTERRUPT_GEN_MEMBER(segas1x_bootleg_state::sys16_interrupt)

View File

@ -659,7 +659,7 @@ UINT32 segas1x_bootleg_state::screen_update_s16a_bootleg(screen_device &screen,
{
// if the color is set to maximum, shadow pixels underneath us
if ((pix & 0x03f0) == 0x03f0)
dest[x] += (m_paletteram[dest[x]] & 0x8000) ? m_palette->entries()*2 : m_palette->entries();
dest[x] += (m_paletteram[dest[x]] & 0x8000) ? m_palette_entries*2 : m_palette_entries;
// otherwise, just add in sprite palette base
else
@ -729,7 +729,7 @@ UINT32 segas1x_bootleg_state::screen_update_s16a_bootleg_passht4b(screen_device
{
// if the color is set to maximum, shadow pixels underneath us
if ((pix & 0x03f0) == 0x03f0)
dest[x] += (m_paletteram[dest[x]] & 0x8000) ? m_palette->entries()*2 : m_palette->entries();
dest[x] += (m_paletteram[dest[x]] & 0x8000) ? m_palette_entries*2 : m_palette_entries;
// otherwise, just add in sprite palette base
else
@ -808,7 +808,7 @@ UINT32 segas1x_bootleg_state::screen_update_system16(screen_device &screen, bitm
{
// if the color is set to maximum, shadow pixels underneath us
if ((pix & 0x03f0) == 0x03f0)
dest[x] += (m_paletteram[dest[x]] & 0x8000) ? m_palette->entries()*2 : m_palette->entries();
dest[x] += (m_paletteram[dest[x]] & 0x8000) ? m_palette_entries*2 : m_palette_entries;
// otherwise, just add in sprite palette base
else
@ -871,7 +871,7 @@ UINT32 segas1x_bootleg_state::screen_update_system18old(screen_device &screen, b
{
// if the color is set to maximum, shadow pixels underneath us
if ((pix & 0x03f0) == 0x03f0)
dest[x] += (m_paletteram[dest[x]] & 0x8000) ? m_palette->entries()*2 : m_palette->entries();
dest[x] += (m_paletteram[dest[x]] & 0x8000) ? m_palette_entries*2 : m_palette_entries;
// otherwise, just add in sprite palette base
else