- make_color_ramp_rgb(st->display, st->xgwa.colormap,
- r1, g1, b1, 0xFFFF, 0xFFFF, 0xFFFF,
- tmp_col1, &st->ncolors, False, True, False);
- make_color_ramp_rgb(st->display, st->xgwa.colormap,
- r2, g2, b2, 0xFFFF, 0xFFFF, 0xFFFF,
- tmp_col2, &st->ncolors, False, True, False);
+ make_color_ramp_rgb(st->xgwa.screen, st->xgwa.visual, st->xgwa.colormap,
+ r1, g1, b1, 0xFFFF, 0xFFFF, 0xFFFF,
+ tmp_col1, &st->ncolors, False);
+ make_color_ramp_rgb(st->xgwa.screen, st->xgwa.visual, st->xgwa.colormap,
+ r2, g2, b2, 0xFFFF, 0xFFFF, 0xFFFF,
+ tmp_col2, &st->ncolors, False);