Esempio n. 1
0
PALETTE_INIT_MEMBER(m62_state,spelunk2)
{
	const UINT8 *color_prom = memregion("proms")->base();
	dynamic_array<rgb_t> rgb;

	compute_res_net_all(rgb, color_prom, spelunk2_tile_decode_info, m62_tile_net_info);
	palette.set_pen_colors(0x000, rgb, 0x200);

	compute_res_net_all(rgb, color_prom, spelunk2_sprite_decode_info, m62_sprite_net_info);
	palette.set_pen_colors(0x200, rgb, 0x100);

	m62_amplify_contrast(palette.palette(),0);

	/* we'll need this at run time */
	m_sprite_height_prom = color_prom + 0x700;
}
Esempio n. 2
0
PALETTE_INIT_MEMBER(tagteam_state, tagteam)
{
	const UINT8 *color_prom = memregion("proms")->base();
	std::vector<rgb_t> rgb;

	compute_res_net_all(rgb, color_prom, tagteam_decode_info, tagteam_net_info);
	palette.set_pen_colors(0x00, rgb);
}
Esempio n. 3
0
void tagteam_state::tagteam_palette(palette_device &palette) const
{
	uint8_t const *const color_prom = memregion("proms")->base();

	std::vector<rgb_t> rgb;
	compute_res_net_all(rgb, color_prom, tagteam_decode_info, tagteam_net_info);
	palette.set_pen_colors(0x00, rgb);
}
Esempio n. 4
0
void tagteam_state::palette_init()
{
	const UINT8 *color_prom = memregion("proms")->base();
	rgb_t *rgb;

	rgb = compute_res_net_all(machine(), color_prom, &tagteam_decode_info, &tagteam_net_info);
	palette_set_colors(machine(), 0x00, rgb, 0x20);
	auto_free(machine(), rgb);
}
Esempio n. 5
0
PALETTE_INIT_MEMBER(carjmbre_state, carjmbre)
{
	const uint8_t *color_prom = memregion("proms")->base();
	std::vector<rgb_t> rgb;

	compute_res_net_all(rgb, color_prom, carjmbre_decode_info, carjmbre_net_info);
	palette.set_pen_colors(0, rgb);
	palette.palette()->normalize_range(0, 63);
}
Esempio n. 6
0
PALETTE_INIT_MEMBER(carjmbre_state, carjmbre)
{
	const UINT8 *color_prom = memregion("proms")->base();
	dynamic_array<rgb_t> rgb;

	compute_res_net_all(rgb, color_prom, carjmbre_decode_info, carjmbre_net_info);
	palette.set_pen_colors(0, rgb, 64);
	palette.palette()->normalize_range(0, 63);
}
Esempio n. 7
0
PALETTE_INIT_MEMBER(m62_state,spelunk2)
{
	const UINT8 *color_prom = memregion("proms")->base();
	rgb_t *rgb;

	rgb = compute_res_net_all(machine(), color_prom, &spelunk2_tile_decode_info, &m62_tile_net_info);
	palette_set_colors(machine(), 0x000, rgb, 0x200);
	auto_free(machine(), rgb);

	rgb = compute_res_net_all(machine(), color_prom, &spelunk2_sprite_decode_info, &m62_sprite_net_info);
	palette_set_colors(machine(), 0x200, rgb, 0x100);
	auto_free(machine(), rgb);

	m62_amplify_contrast(machine().palette,0);

	/* we'll need this at run time */
	m_sprite_height_prom = color_prom + 0x700;
}
Esempio n. 8
0
PALETTE_INIT_MEMBER(popper_state, popper)
{
	const UINT8 *color_prom = memregion("proms")->base();
	std::vector<rgb_t> rgb;

	compute_res_net_all(rgb, color_prom, popper_decode_info, popper_net_info);
	palette.set_pen_colors(0, rgb);
	palette.palette()->normalize_range(0, 63);
}
Esempio n. 9
0
void carjmbre_state::palette_init()
{
	const UINT8 *color_prom = memregion("proms")->base();
	rgb_t *rgb;

	rgb = compute_res_net_all(machine(), color_prom, &carjmbre_decode_info, &carjmbre_net_info);
	palette_set_colors(machine(), 0, rgb, 64);
	palette_normalize_range(machine().palette, 0, 63, 0, 255);
	auto_free(machine(), rgb);
}
Esempio n. 10
0
PALETTE_INIT_MEMBER(popper_state, popper)
{
	const UINT8 *color_prom = memregion("proms")->base();
	rgb_t   *rgb;

	rgb = compute_res_net_all(machine(), color_prom, &popper_decode_info, &popper_net_info);
	palette.set_pen_colors(0, rgb, 64);
	palette.palette()->normalize_range(0, 63);
	auto_free(machine(), rgb);
}
Esempio n. 11
0
PALETTE_INIT_MEMBER(m62_state,battroad)
{
	const UINT8 *color_prom = memregion("proms")->base();
	dynamic_array<rgb_t> rgb;

	// m62 palette
	compute_res_net_all(rgb, color_prom, m62_tile_decode_info, m62_tile_net_info);
	palette.set_pen_colors(0x000, rgb, 0x100);

	compute_res_net_all(rgb, color_prom, m62_sprite_decode_info, m62_sprite_net_info);
	palette.set_pen_colors(0x100, rgb, 0x100);

	m62_amplify_contrast(palette.palette(),0x200);

	// custom palette for foreground
	compute_res_net_all(rgb, color_prom, battroad_char_decode_info, battroad_char_net_info);
	palette.set_pen_colors(0x200, rgb, 0x020);

	/* we'll need this at run time */
	m_sprite_height_prom = color_prom + 0x620;
}
Esempio n. 12
0
PALETTE_INIT_MEMBER(m62_state,battroad)
{
	const UINT8 *color_prom = memregion("proms")->base();
	rgb_t *rgb;

	// m62 palette
	rgb = compute_res_net_all(machine(), color_prom, &m62_tile_decode_info, &m62_tile_net_info);
	palette_set_colors(machine(), 0x000, rgb, 0x100);
	auto_free(machine(), rgb);

	rgb = compute_res_net_all(machine(), color_prom, &m62_sprite_decode_info, &m62_sprite_net_info);
	palette_set_colors(machine(), 0x100, rgb, 0x100);
	auto_free(machine(), rgb);

	m62_amplify_contrast(machine().palette,0x200);

	// custom palette for foreground
	rgb = compute_res_net_all(machine(), color_prom, &battroad_char_decode_info, &battroad_char_net_info);
	palette_set_colors(machine(), 0x200, rgb, 0x020);
	auto_free(machine(), rgb);

	/* we'll need this at run time */
	m_sprite_height_prom = color_prom + 0x620;
}