rem: RColor	color; int		value[3]; char	tmp[3];  W_ColorPanel *panel = (W_ColorPanel*)data;  value[0] = WMGetSliderValue(panel->hsbHueS); value[1] = WMGetSliderValue(panel->hsbSaturationS); value[2] = WMGetSliderValue(panel->hsbBrightnessS);  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);  panel->hsvcolor.hue = value[0]; panel->hsvcolor.saturation = value[1]*2.55; panel->hsvcolor.value = value[2]*2.55;  RHSVtoRGB(&panel->hsvcolor, &color);  panel->lastChanged = WMHSBModeColorPanel; WMSetColorPanelColor(panel, color);  if (w != panel->hsbBrightnessS) hsbUpdateBrightnessGradient(panel); if (w != panel->hsbSaturationS) hsbUpdateSaturationGradient(panel); if (w != panel->hsbHueS) hsbUpdateHueGradient(panel);
add: RColor    color; int        value[3]; char    tmp[4];  W_ColorPanel *panel = (W_ColorPanel*)data;  value[0] = WMGetSliderValue(panel->hsbHueS); value[1] = WMGetSliderValue(panel->hsbSaturationS); value[2] = WMGetSliderValue(panel->hsbBrightnessS);  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);  panel->hsvcolor.hue = value[0]; panel->hsvcolor.saturation = value[1]*2.55; panel->hsvcolor.value = value[2]*2.55;  RHSVtoRGB(&panel->hsvcolor, &color);  panel->lastChanged = WMHSBModeColorPanel; WMSetColorPanelColor(panel, color);  if (w != panel->hsbBrightnessS) hsbUpdateBrightnessGradient(panel); if (w != panel->hsbSaturationS) hsbUpdateSaturationGradient(panel); if (w != panel->hsbHueS) hsbUpdateHueGradient(panel);
context: hsbSliderCallback(WMWidget *w, void *data){	RColor	color;	int		value[3];	char	tmp[3];		W_ColorPanel *panel = (W_ColorPanel*)data;	value[0] = WMGetSliderValue(panel->hsbHueS);	value[1] = WMGetSliderValue(panel->hsbSaturationS);	value[2] = WMGetSliderValue(panel->hsbBrightnessS);		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);	panel->hsvcolor.hue = value[0];	panel->hsvcolor.saturation = value[1]*2.55;	panel->hsvcolor.value = value[2]*2.55;		RHSVtoRGB(&panel->hsvcolor, &color);	panel->lastChanged = WMHSBModeColorPanel;	WMSetColorPanelColor(panel, color);	if (w != panel->hsbBrightnessS)		hsbUpdateBrightnessGradient(panel);	if (w != panel->hsbSaturationS)		hsbUpdateSaturationGradient(panel);	if (w != panel->hsbHueS)		hsbUpdateHueGradient(panel);}