rem: RHSVColor	cur_hsv; int			value; char		tmp[3];  RRGBtoHSV(&panel->color, &cur_hsv);  value = rint(cur_hsv.value/2.55); WMSetSliderValue(panel->grayBrightnessS, value);  sprintf(tmp, "%d", value); WMSetTextFieldText(panel->grayBrightnessT, tmp);
add: RHSVColor    cur_hsv; int            value; char        tmp[4];  RRGBtoHSV(&panel->color, &cur_hsv);  value = rint(cur_hsv.value/2.55); WMSetSliderValue(panel->grayBrightnessS, value);  sprintf(tmp, "%d", value); WMSetTextFieldText(panel->grayBrightnessT, tmp);
context: grayInit(W_ColorPanel *panel){	RHSVColor	cur_hsv;	int			value;	char		tmp[3];		RRGBtoHSV(&panel->color, &cur_hsv);	value = rint(cur_hsv.value/2.55);		WMSetSliderValue(panel->grayBrightnessS, value);	sprintf(tmp, "%d", value);	WMSetTextFieldText(panel->grayBrightnessT, tmp);}