case GM2_TONE_MAP: p_buff = "GM2 T"; break; case GM2_DRUM_MAP: p_buff = "GM2 D"; 
static int tracer_ch_program_draw ( int ch, int bank, int program, char *instrument, int mapID, int lockflag ){	RECT rc;	char buff[64];	char *p_buff;	if ( bank >= 0 ) {		w32g_tracer_wnd.bank[ch] = bank;	} else {		if ( ISDRUMCHANNEL(ch) )			bank = w32g_tracer_wnd.bank[ch] = 128;		else			bank = w32g_tracer_wnd.bank[ch] = channel[ch].bank;	}	if ( bank == 128 ) {		if ( get_ch_rc ( ch, &rc, &w32g_tracer_wnd.rc_bank ) == 0 ) {			sprintf ( buff, "drum");			cheap_string_view_draw ( &rc, buff, C_TEXT_FORE, C_TEXT_BACK, CSV_CENTER, lockflag );		}	} else {		if ( get_ch_rc ( ch, &rc, &w32g_tracer_wnd.rc_bank ) == 0 ) {			sprintf ( buff, "%03d", bank );			cheap_string_view_draw ( &rc, buff, C_TEXT_FORE, C_TEXT_BACK, CSV_CENTER, lockflag );		}	}	if ( program >= 0 ) {		w32g_tracer_wnd.program[ch] = program;	} else {		program = w32g_tracer_wnd.program[ch] = channel[ch].program;	}	if ( get_ch_rc ( ch, &rc, &w32g_tracer_wnd.rc_program ) == 0 ) {		sprintf ( buff, "%03d", program );		cheap_string_view_draw ( &rc, buff, C_TEXT_FORE, C_TEXT_BACK, CSV_CENTER, lockflag );	}	if ( instrument == NULL )		instrument = " ----";	if ( w32g_tracer_wnd.instrument[ch] != instrument ) {		strncpy ( w32g_tracer_wnd.instrument[ch], (char *)instrument, 250 );		w32g_tracer_wnd.instrument[ch][250] = '\0';	}	if ( w32g_tracer_wnd.instrument[ch][0] != ' ' ) {		char buff[255];		strncpy ( buff, w32g_tracer_wnd.instrument[ch], 250 );		buff[250] = '\0';		w32g_tracer_wnd.instrument[ch][0] = ' ';		w32g_tracer_wnd.instrument[ch][1] = '\0';		strcat ( w32g_tracer_wnd.instrument[ch], buff );	}	if ( get_ch_rc ( ch, &rc, &w32g_tracer_wnd.rc_instrument ) == 0 )		cheap_string_view_draw ( &rc, w32g_tracer_wnd.instrument[ch], C_TEXT_FORE, C_TEXT_BACK, CSV_LEFT, lockflag );	if ( mapID >= 0 ) {		w32g_tracer_wnd.mapID[ch] = mapID;	} else {		mapID = w32g_tracer_wnd.mapID[ch] = channel[ch].mapID;	}	switch ( mapID ) {	default:    case INST_NO_MAP:    case NUM_INST_MAP:		p_buff = "----";		break;    case SC_55_TONE_MAP:		p_buff = "55 T";		break;    case SC_55_DRUM_MAP:		p_buff = "55 D";		break;    case SC_88_TONE_MAP:		p_buff = "88 T";		break;    case SC_88_DRUM_MAP:		p_buff = "88 D";		break;    case SC_88PRO_TONE_MAP:		p_buff = "88Pro T";		break;    case SC_88PRO_DRUM_MAP:		p_buff = "88Pro D";		break;    case XG_NORMAL_MAP:		p_buff = "XG";		break;    case XG_SFX64_MAP:		p_buff = "XG SFX64";		break;    case XG_SFX126_MAP:		p_buff = "XG SFX126";		break;    case XG_DRUM_MAP:		p_buff = "XG D";		break;	}	if ( get_ch_rc ( ch, &rc, &w32g_tracer_wnd.rc_inst_map ) == 0 )		cheap_string_view_draw ( &rc, p_buff, C_TEXT_FORE, C_TEXT_BACK, CSV_CENTER, lockflag );	return 0;}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/cf02dfdd71a9093ba3aaa80ac716b22f13c28929/w32g_subwin3.c/buggy/interface/w32g_subwin3.c