rem: int		value[3]; char	tmp[3];  value[0] = panel->hsvcolor.hue; value[1] = rint(panel->hsvcolor.saturation/2.55); value[2] = rint(panel->hsvcolor.value/2.55);  WMSetSliderValue(panel->hsbHueS,value[0]); WMSetSliderValue(panel->hsbSaturationS,value[1]); WMSetSliderValue(panel->hsbBrightnessS,value[2]);  sprintf(tmp, "%d", value[0]); WMSetTextFieldText(panel->hsbHueT, tmp); sprintf(tmp, "%d", value[1]); WMSetTextFieldText(panel->hsbSaturationT, tmp); sprintf(tmp, "%d", value[2]); WMSetTextFieldText(panel->hsbBrightnessT, tmp);  hsbUpdateBrightnessGradient(panel); hsbUpdateSaturationGradient(panel); hsbUpdateHueGradient(panel);
add: int        value[3]; char    tmp[4];  value[0] = panel->hsvcolor.hue; value[1] = rint(panel->hsvcolor.saturation/2.55); value[2] = rint(panel->hsvcolor.value/2.55);  WMSetSliderValue(panel->hsbHueS,value[0]); WMSetSliderValue(panel->hsbSaturationS,value[1]); WMSetSliderValue(panel->hsbBrightnessS,value[2]);  sprintf(tmp, "%d", value[0]); WMSetTextFieldText(panel->hsbHueT, tmp); sprintf(tmp, "%d", value[1]); WMSetTextFieldText(panel->hsbSaturationT, tmp); sprintf(tmp, "%d", value[2]); WMSetTextFieldText(panel->hsbBrightnessT, tmp);  hsbUpdateBrightnessGradient(panel); hsbUpdateSaturationGradient(panel); hsbUpdateHueGradient(panel);
context: hsbInit(W_ColorPanel *panel){	int		value[3];	char	tmp[3];		value[0] = panel->hsvcolor.hue;	value[1] = rint(panel->hsvcolor.saturation/2.55);	value[2] = rint(panel->hsvcolor.value/2.55);		WMSetSliderValue(panel->hsbHueS,value[0]);	WMSetSliderValue(panel->hsbSaturationS,value[1]);	WMSetSliderValue(panel->hsbBrightnessS,value[2]);		sprintf(tmp, "%d", value[0]);	WMSetTextFieldText(panel->hsbHueT, tmp);	sprintf(tmp, "%d", value[1]);	WMSetTextFieldText(panel->hsbSaturationT, tmp);	sprintf(tmp, "%d", value[2]);	WMSetTextFieldText(panel->hsbBrightnessT, tmp);		hsbUpdateBrightnessGradient(panel);	hsbUpdateSaturationGradient(panel);	hsbUpdateHueGradient(panel);}