rem: if (fill && ((si->fbc.bytes_per_row * si->dm.virtual_height) > (16 * 1024 * 1024))) { LOG(4, ("Acc: Not exporting hook %s.\n", msg)); return B_ERROR; }
context: status_t check_acc_capability(uint32 feature){	bool fill = false;	char *msg = "";	/* setup logmessage text */	switch (feature)	{	case B_SCREEN_TO_SCREEN_BLIT:		msg = "B_SCREEN_TO_SCREEN_BLIT";		break;	case B_FILL_RECTANGLE:		msg = "B_FILL_RECTANGLE";		fill = true;		break;	case B_INVERT_RECTANGLE:		msg = "B_INVERT_RECTANGLE";		fill = true;		break;	case B_FILL_SPAN:		msg = "B_FILL_SPAN";		fill = true;		break;	case B_SCREEN_TO_SCREEN_TRANSPARENT_BLIT:		msg = "B_SCREEN_TO_SCREEN_TRANSPARENT_BLIT";		break;	case B_SCREEN_TO_SCREEN_SCALED_FILTERED_BLIT:		msg = "B_SCREEN_TO_SCREEN_SCALED_FILTERED_BLIT";		break;	default:		msg = "UNKNOWN";		break;	}	/* hardware acceleration is only supported in modes with upto a certain	 * memory pitch.. */	if (si->acc_mode)	{		/* see if we support hardware rectangle fills in the current mode:		 * the Matrox card's acc engine can adress upto 16Mbyte memory for this cmd! */		if (fill &&			((si->fbc.bytes_per_row * si->dm.virtual_height) > (16 * 1024 * 1024)))		{			LOG(4, ("Acc: Not exporting hook %s.\n", msg));			return B_ERROR;		}		LOG(4, ("Acc: Exporting hook %s.\n", msg));		return B_OK;	}	else	{		LOG(4, ("Acc: Not exporting hook %s.\n", msg));		return B_ERROR;	}}