rem: cos( cur_hsv.hue*M_PI/180))) /2.0);
add: cos( panel->color.hsv.hue * (M_PI/180.0) ))) / 2.0);
context: wheelPositionSelectionOutBounds(W_ColorPanel *panel, int x, int y){    RHSVColor	cur_hsv;    float	hue;    float	xcor, ycor;        xcor = ((x*2.0) / (colorWheelSize+4)) - 1.0;    ycor = ((y*2.0) / (colorWheelSize+4)) - 1.0;        cur_hsv.saturation = 255;    cur_hsv.value = 255 - WMGetSliderValue(panel->wheelBrightnessS);        if (xcor != 0)	hue = atan(ycor/xcor);    else {	if (ycor > 0)	    hue = M_PI * 0.5;	else	    hue = M_PI * 1.5;    }        if (xcor < 0)	hue += M_PI;    if ((xcor > 0) && (ycor < 0))	hue += M_PI * 2.0;        hue = -hue;        if (hue < 0)	hue += M_PI * 2.0;        cur_hsv.hue = (hue*180.0)/(M_PI);    RHSVtoRGB(&cur_hsv, &panel->color);        wheelUndrawSelection(panel);        panel->colx = 2 + rint((colorWheelSize * (1.0 + 					      cos( cur_hsv.hue*M_PI/180))) /2.0);    /* "+2" because of "colorWheelSize + 4" */    panel->coly = 2 + rint((colorWheelSize * (1.0 + 					      sin(-cur_hsv.hue*M_PI/180))) /2.0);        wheelUpdateSelection(panel);    wheelUpdateBrightnessGradientFromHSV(panel, cur_hsv);}