rem: return;
add: WMScreen	*scr = WMWidgetScreen(panel->win); RHSVColor	hsvcolor; RColor		intcolor; GC			bgc = WMColorGC(scr->black); GC			wgc = WMColorGC(scr->white); int			originalHue;  WMSetColorWellColor(panel->colorWell, color);  intcolor.red = color->color.red >> 8; intcolor.green = color->color.green >> 8; intcolor.blue = color->color.blue >> 8;  panel->color = intcolor;   if (panel->lastChanged != WMHSBModeColorPanel) {   if ((panel->color.red == 0) && (panel->color.green == 0) && (panel->color.blue == 0) && (panel->hsvcolor.hue <= 359)) { originalHue = panel->hsvcolor.hue; RRGBtoHSV(&panel->color, &panel->hsvcolor); panel->hsvcolor.hue = originalHue; } else { RRGBtoHSV(&panel->color, &panel->hsvcolor); } }  panel->wheelMtrx = wheelInitMatrix(panel);	   RRGBtoHSV(&intcolor, &hsvcolor); panel->colx = 2 + rint((colorWheelSize / 2.0) * (1 + (hsvcolor.saturation/255.0) * cos( hsvcolor.hue*M_PI/180.0))); panel->coly = 2 + rint((colorWheelSize / 2.0) * (1 + (hsvcolor.saturation/255.0) * sin(-hsvcolor.hue*M_PI/180.0))); wheelUpdateBrightnessGradientFromHSV(panel, hsvcolor); WMSetSliderValue(panel->wheelBrightnessS, 255 - hsvcolor.value);  panel->selectionImg = XCreatePixmap(scr->display, W_VIEW(panel->wheelFrm)->window, 4, 4, scr->depth); XFillRectangle(scr->display, panel->selectionImg, bgc, 0, 0, 4, 4); XFillRectangle(scr->display, panel->selectionImg, wgc, 1, 1, 2, 2);   panel->palx = customPaletteWidth/2; panel->paly = customPaletteHeight/2;  WMSetColorPanelPickerMode(panel, panel->mode);
context: WMSetColorPanelColor(WMColorPanel *panel, RColor color){return;}