Пример #1
0
void llander_stop(void)
{
	dvg_stop();

	if (llander_panel != NULL)
		artwork_free(&llander_panel);

	if (llander_lit_panel != NULL)
		artwork_free(&llander_lit_panel);

}
Пример #2
0
void spacewar_vh_stop (void)
{
	if (spacewar_panel != NULL)
		artwork_free(spacewar_panel);
	spacewar_panel = NULL;

	if (spacewar_pressed_panel != NULL)
		artwork_free(spacewar_pressed_panel);
	spacewar_pressed_panel = NULL;
	vector_vh_stop();
}
Пример #3
0
void llander_init_colors (unsigned char *palette, unsigned short *colortable,const unsigned char *color_prom)
{
	int width, height, i;

	avg_init_colors(palette,colortable,color_prom);

	llander_lit_panel = NULL;
	width = Machine->scrbitmap->width;
	height = 0.16 * width;

	if ((llander_panel = artwork_load_size("llander.png", 24, 230, width, height))!=NULL)
	{
		if ((llander_lit_panel = artwork_load_size("llander1.png", 24 + llander_panel->num_pens_used, 230 - llander_panel->num_pens_used, width, height))==NULL)
		{
			artwork_free (llander_panel);
			llander_panel = NULL;
			return ;
		}
	}
	else
		return;

	for (i = 0; i < 16; i++)
		palette[3*(i+8)]=palette[3*(i+8)+1]=palette[3*(i+8)+2]= (255*i)/15;

	memcpy (palette+3*llander_panel->start_pen, llander_panel->orig_palette,
			3*llander_panel->num_pens_used);
	memcpy (palette+3*llander_lit_panel->start_pen, llander_lit_panel->orig_palette,
			3*llander_lit_panel->num_pens_used);
}
Пример #4
0
void spacewar_init_colors (unsigned char *palette, unsigned short *colortable,const unsigned char *color_prom)
{
	int width, height, i;

    color_display = FALSE;

	/* initialize the first 8 colors with the basic colors */
	for (i = 0; i < 8; i++)
	{
		palette[3*i  ] = (i & RED  ) ? 0xff : 0;
		palette[3*i+1] = (i & GREEN) ? 0xff : 0;
		palette[3*i+2] = (i & BLUE ) ? 0xff : 0;
	}

	for (i = 0; i < 16; i++)
		palette[3*(i+8)]=palette[3*(i+8)+1]=palette[3*(i+8)+2]= (255*i)/15;

	spacewar_pressed_panel = NULL;
	width = Machine->scrbitmap->width;
	height = 0.16 * width;

	if ((spacewar_panel = artwork_load_size("spacewr1.png", 24, 230, width, height))!=NULL)
	{
		if ((spacewar_pressed_panel = artwork_load_size("spacewr2.png", 24 + spacewar_panel->num_pens_used, 230 - spacewar_panel->num_pens_used, width, height))==NULL)
		{
			artwork_free (spacewar_panel);
			spacewar_panel = NULL;
			return ;
		}
	}
	else
		return;

	memcpy (palette+3*spacewar_panel->start_pen, spacewar_panel->orig_palette,
			3*spacewar_panel->num_pens_used);
	memcpy (palette+3*spacewar_pressed_panel->start_pen, spacewar_pressed_panel->orig_palette,
			3*spacewar_pressed_panel->num_pens_used);
}
Пример #5
0
void llander_init_colors (unsigned char *palette, unsigned short *colortable,const unsigned char *color_prom)
{
	int width, height, i, nextcol;

	avg_init_palette_white(palette,colortable,color_prom);

	llander_lit_panel = NULL;
	width = Machine->scrbitmap->width;
	height = 0.16 * width;

	nextcol = 24;

	artwork_load_size(&llander_panel, "llander.png", nextcol, Machine->drv->total_colors-nextcol, width, height);
	if (llander_panel != NULL)
	{
		if (Machine->scrbitmap->depth == 8)
			nextcol += llander_panel->num_pens_used;

		artwork_load_size(&llander_lit_panel, "llander1.png", nextcol, Machine->drv->total_colors-nextcol, width, height);
		if (llander_lit_panel == NULL)
		{
			artwork_free(&llander_panel);
			return ;
		}
	}
	else
		return;

	for (i = 0; i < 16; i++)
		palette[3*(i+8)]=palette[3*(i+8)+1]=palette[3*(i+8)+2]= (255*i)/15;

	memcpy (palette+3*llander_panel->start_pen, llander_panel->orig_palette,
			3*llander_panel->num_pens_used);
	memcpy (palette+3*llander_lit_panel->start_pen, llander_lit_panel->orig_palette,
			3*llander_lit_panel->num_pens_used);
}
Пример #6
0
void cinemat_vh_stop (void)
{
	if (backdrop) artwork_free (backdrop);
	if (overlay) artwork_free (overlay);
	vector_vh_stop();
}