rem: gradient = RRenderGradient(80, 30, &from, &to, RVerticalGradient);
add: gradient = RRenderGradient(image->width, image->height, &from, &to, RVerticalGradient);
context: updateTGradImage(TexturePanel *panel){    RImage *image, *gradient;    WMPixmap *pixmap;    RColor from;    RColor to;    WMColor *color;    color = WMGetColorWellColor(panel->tcol1W);    from.red = WMRedComponentOfColor(color)>>8;    from.green = WMGreenComponentOfColor(color)>>8;    from.blue = WMBlueComponentOfColor(color)>>8;    color = WMGetColorWellColor(panel->tcol2W);    to.red = WMRedComponentOfColor(color)>>8;    to.green = WMGreenComponentOfColor(color)>>8;    to.blue = WMBlueComponentOfColor(color)>>8;    if (WMGetButtonSelected(panel->dirhB)) {	gradient = RRenderGradient(80, 30, &from, &to, RHorizontalGradient);    } else if (WMGetButtonSelected(panel->dirvB)) {	gradient = RRenderGradient(80, 30, &from, &to, RVerticalGradient);    } else {	gradient = RRenderGradient(80, 30, &from, &to, RDiagonalGradient);    }}