gwin->paint_shape(gwin->get_width()/2, gwin->get_height()/2, shape_file->get_shape(current_shape, current_frame));
Shape_frame *frame = shape_file->get_shape( current_shape, current_frame); if (frame) gwin->paint_shape( gwin->get_width()/2, gwin->get_height()/2, frame);
static void shape_showcase(	int current_file, 	int current_shape,	int current_frame	)	{	char buf[256];	gwin->paint();	// First of all draw the shape	Vga_file *shape_file = gwin->get_shape_file_data(current_file);	gwin->paint_shape(gwin->get_width()/2, gwin->get_height()/2,		shape_file->get_shape(current_shape, current_frame));	// Then show some info about it	sprintf(buf, "Shape file: \"%s\"", gwin->get_shape_file_name(current_file));	gwin->paint_text_box(2, buf, 		100, 100,  gwin->get_width(), gwin->get_height());	sprintf(buf, "Shape %d/%d - Frame %d/%d", 		current_shape, shape_file->get_num_shapes()-1,		current_frame, shape_file->get_num_frames(current_shape)-1);	gwin->paint_text_box(2, buf, 		100, 300,  gwin->get_width(), gwin->get_height());	}