rem: WMScreen	*scr = WMWidgetScreen(panel->win); WMColor 	*wellcolor;  wellcolor = WMCreateRGBColor(scr, color.red << 8, color.green << 8, color.blue << 8, True); WMSetColorWellColor(panel->colorWell, wellcolor); WMReleaseColor(wellcolor);
add: WMScreen    *scr = WMWidgetScreen(panel->win); WMColor     *wellcolor; int            originalHue;  wellcolor = WMCreateRGBColor(scr, color.red << 8, color.green << 8, color.blue << 8, True); WMSetColorWellColor(panel->colorWell, wellcolor); WMReleaseColor(wellcolor);  panel->color = color;   if (panel->lastChanged != WMHSBModeColorPanel) {
context: WMSetColorPanelColor(WMColorPanel *panel, RColor color){	WMScreen	*scr = WMWidgetScreen(panel->win);	WMColor 	*wellcolor;	wellcolor = WMCreateRGBColor(scr, color.red << 8, color.green << 8, color.blue << 8, True);	WMSetColorWellColor(panel->colorWell, wellcolor);	WMReleaseColor(wellcolor);		panel->color = color;	if (panel->lastChanged != WMHSBModeColorPanel)	/* If color was set by HSB-Panel do not convert back to hsv */		RRGBtoHSV(&panel->color, &panel->hsvcolor);}