rem: panel->color = cur_rgb; } else { panel->color.red    = panel->wheelMtrx->values[ panel->wheelMtrx->data[0][ofs] ]; panel->color.green    = panel->wheelMtrx->values[ panel->wheelMtrx->data[1][ofs] ]; panel->color.blue    = panel->wheelMtrx->values[ panel->wheelMtrx->data[2][ofs] ]; }  wheelRender(panel); wheelPaint(panel); wheelUpdateSelection(panel);
add: ofs = (panel->coly * panel->wheelMtrx->width) + panel->colx;  if (!wheelInsideColorWheel(panel, ofs)) { panel->hsvcolor.saturation = 255; panel->hsvcolor.value = value; RHSVtoRGB(&panel->hsvcolor, &cur_rgb);  panel->color = cur_rgb; } else { panel->color.red	= panel->wheelMtrx->values[ panel->wheelMtrx->data[0][ofs] ]; panel->color.green	= panel->wheelMtrx->values[ panel->wheelMtrx->data[1][ofs] ]; panel->color.blue	= panel->wheelMtrx->values[ panel->wheelMtrx->data[2][ofs] ]; }  wheelRender(panel); wheelPaint(panel); wheelUpdateSelection(panel);
context: wheelBrightnessSliderCallback(WMWidget *w, void *data){    int    i;    unsigned int    v;    int    value;    unsigned long    ofs;    RColor            cur_rgb;        W_ColorPanel *panel = (W_ColorPanel*)data;        value = 255-WMGetSliderValue(panel->wheelBrightnessS);        for (i = 0; i < 256; i++) {        /* We divide by 128 in advance, and check whether that number divides         * by 2 properly. If not, we add one to round the number correctly         */        v = (i*value) >> 7;#ifdef EASTEREGG        panel->wheelMtrx->values[i] = (unsigned char)((v >> 1) + v);#else        panel->wheelMtrx->values[i] = (unsigned char)((v >> 1) +(v & 0x01));#endif    }        ofs = (panel->coly * panel->wheelMtrx->width) + panel->colx;        if (!wheelInsideColorWheel(panel, ofs)) {        panel->hsvcolor.saturation = 255;        panel->hsvcolor.value = value;        RHSVtoRGB(&panel->hsvcolor, &cur_rgb);	        panel->color = cur_rgb;    }    else {        panel->color.red    = panel->wheelMtrx->values[ panel->wheelMtrx->data[0][ofs] ];        panel->color.green    = panel->wheelMtrx->values[ panel->wheelMtrx->data[1][ofs] ];        panel->color.blue    = panel->wheelMtrx->values[ panel->wheelMtrx->data[2][ofs] ];    }        wheelRender(panel);    wheelPaint(panel);    wheelUpdateSelection(panel);}