rem: WMScreen	*scr = WMWidgetScreen(panel->win); RHSVColor	hsvcolor; RColor	intcolor; GC		bgc = WMColorGC(scr->black); GC		wgc = WMColorGC(scr->white); int		originalHue;
context: WMSetColorPanelColor(WMColorPanel *panel, WMColor *color){    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;    panel->colorSet = True;        /* If color was set by HSB-Panel do not convert back to hsv */    if (panel->lastChanged != WMHSBModeColorPanel) {		/* if color is black, hue is undetermined, so it must be restored */	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);	/* Needs to be done After Color is set */        /* Maybe put this in a sub-function ... Initialising selected images */    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);    /* End of initialisation section */        panel->palx = customPaletteWidth/2;    panel->paly = customPaletteHeight/2;        WMSetColorPanelPickerMode(panel, panel->mode);}