Exemple #1
0
void psychic5_state::psychic5_change_palette(int color, int offset)
{
    UINT8 lo = m_ps5_palette_ram[offset & ~1];
    UINT8 hi = m_ps5_palette_ram[offset | 1];
    jal_blend_set(color, hi & 0x0f);
    palette_set_color_rgb(machine(), color, pal4bit(lo >> 4), pal4bit(lo), pal4bit(hi >> 4));
}
Exemple #2
0
static void psychic5_change_palette(running_machine &machine, int color, int offset)
{
	psychic5_state *state = machine.driver_data<psychic5_state>();
	UINT8 lo = state->m_ps5_palette_ram[offset & ~1];
	UINT8 hi = state->m_ps5_palette_ram[offset | 1];
	jal_blend_set(color, hi & 0x0f);
	palette_set_color_rgb(machine, color, pal4bit(lo >> 4), pal4bit(lo), pal4bit(hi >> 4));
}