Bool wire = MI_IS_WIREFRAME(mi);
glschool_configuration *sc;
- if (!scs) {
- scs = (glschool_configuration *)calloc(MI_NUM_SCREENS(mi), sizeof(glschool_configuration));
- if (!scs) {
- perror("init_glschool: ");
- exit(1);
- }
- }
+ MI_INIT (mi, scs, NULL);
sc = &scs[MI_SCREEN(mi)];
sc->drawGoal = DoDrawGoal;
sc->nColors = 360;
sc->context = init_GL(mi);
sc->colors = (XColor *)calloc(sc->nColors, sizeof(XColor));
- make_color_ramp(0, 0,
+ make_color_ramp(0, 0, 0,
0.0, 1.0, 1.0,
359.0, 1.0, 1.0,
sc->colors, &sc->nColors,