Previous 199869 Revisions Next

r30995 Monday 16th June, 2014 at 16:54:10 UTC by Alex Jackson
system16.c: sync shadow/hilight with non-bootleg code, should fix out-of-range pixels (nw)
[src/mame/drivers]system16.c
[src/mame/video]system16.c

trunk/src/mame/video/system16.c
r30994r30995
659659               {
660660                  // if the color is set to maximum, shadow pixels underneath us
661661                  if ((pix & 0x03f0) == 0x03f0)
662                     dest[x] += (m_paletteram[dest[x]] & 0x8000) ? m_palette->entries()*2 : m_palette->entries();
662                     dest[x] += (m_paletteram[dest[x]] & 0x8000) ? m_palette_entries*2 : m_palette_entries;
663663
664664                  // otherwise, just add in sprite palette base
665665                  else
r30994r30995
729729               {
730730                  // if the color is set to maximum, shadow pixels underneath us
731731                  if ((pix & 0x03f0) == 0x03f0)
732                     dest[x] += (m_paletteram[dest[x]] & 0x8000) ? m_palette->entries()*2 : m_palette->entries();
732                     dest[x] += (m_paletteram[dest[x]] & 0x8000) ? m_palette_entries*2 : m_palette_entries;
733733
734734                  // otherwise, just add in sprite palette base
735735                  else
r30994r30995
808808               {
809809                  // if the color is set to maximum, shadow pixels underneath us
810810                  if ((pix & 0x03f0) == 0x03f0)
811                     dest[x] += (m_paletteram[dest[x]] & 0x8000) ? m_palette->entries()*2 : m_palette->entries();
811                     dest[x] += (m_paletteram[dest[x]] & 0x8000) ? m_palette_entries*2 : m_palette_entries;
812812
813813                  // otherwise, just add in sprite palette base
814814                  else
r30994r30995
871871               {
872872                  // if the color is set to maximum, shadow pixels underneath us
873873                  if ((pix & 0x03f0) == 0x03f0)
874                     dest[x] += (m_paletteram[dest[x]] & 0x8000) ? m_palette->entries()*2 : m_palette->entries();
874                     dest[x] += (m_paletteram[dest[x]] & 0x8000) ? m_palette_entries*2 : m_palette_entries;
875875
876876                  // otherwise, just add in sprite palette base
877877                  else
trunk/src/mame/drivers/system16.c
r30994r30995
9696#include "sound/rf5c68.h"
9797#include "video/segaic16.h"
9898
99#define SHADOW_COLORS_MULTIPLIER 2
99#define SHADOW_COLORS_MULTIPLIER 3
100100
101101
102102INTERRUPT_GEN_MEMBER(segas1x_bootleg_state::sys16_interrupt)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team