Ejemplo n.º 1
0
int invaders_vh_start(void)
{
	/* create overlay if one of was specified in init_X */
	if (overlay_type)
	{
		int start_pen;
		int max_pens;


		start_pen = 2;
		max_pens = Machine->drv->total_colors-start_pen;

		if (overlay_type == 1)
			overlay_create((const struct artwork_element *)init_overlay, start_pen, max_pens);
		else
			overlay_load((const char *)init_overlay, start_pen, max_pens);
	}

	if (use_tmpbitmap && (generic_bitmapped_vh_start() != 0))
		return 1;

	if (use_tmpbitmap)
	{
		plot_pixel_p = plot_pixel_8080_tmpbitmap;
	}
	else
	{
		plot_pixel_p = plot_pixel_8080;
	}

	/* make sure that the screen matches the videoram, this fixes invad2ct */
	//schedule_full_refresh();

	return 0;
}
Ejemplo n.º 2
0
int gameplan_vh_start(void)
{
	if (strcmp(Machine->gamedrv->name, "kaos") == 0)
		gameplan_this_is_kaos = 1;
	else
		gameplan_this_is_kaos = 0;

	if (strcmp(Machine->gamedrv->name, "megatack") == 0)
		gameplan_this_is_megatack = 1;
	else
		gameplan_this_is_megatack = 0;

	return generic_bitmapped_vh_start();
}