X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fspheremonics.c;h=efc4d46a2b806ab43bc56c617b700415c2d47703;hb=e4fa2ac140f7bc56571373a7b7eb585fa4500e38;hp=a4c06902f2b9286f95d8ca319d0d9bf0876cdcce;hpb=723c9eeee862766a1534b2ce17b78adbfac1c3be;p=xscreensaver diff --git a/hacks/glx/spheremonics.c b/hacks/glx/spheremonics.c index a4c06902..efc4d46a 100644 --- a/hacks/glx/spheremonics.c +++ b/hacks/glx/spheremonics.c @@ -165,14 +165,14 @@ static XrmOptionDescRec opts[] = { }; static argtype vars[] = { - {(caddr_t *) &do_spin, "spin", "Spin", DEF_SPIN, t_String}, - {(caddr_t *) &do_wander, "wander", "Wander", DEF_WANDER, t_Bool}, - {(caddr_t *) &res, "resolution", "Resolution", DEF_RESOLUTION, t_Int}, - {(caddr_t *) &duration, "duration", "Duration", DEF_DURATION, t_Int}, - {(caddr_t *) &do_bbox, "bbox", "BBox", DEF_BBOX, t_Bool}, - {(caddr_t *) &do_grid, "grid", "Grid", DEF_GRID, t_Bool}, - {(caddr_t *) &smooth_p, "smooth", "Smooth", DEF_SMOOTH, t_Bool}, - {(caddr_t *) &static_parms, "parameters", "Parameters", DEF_PARMS, t_String}, + {&do_spin, "spin", "Spin", DEF_SPIN, t_String}, + {&do_wander, "wander", "Wander", DEF_WANDER, t_Bool}, + {&res, "resolution", "Resolution", DEF_RESOLUTION, t_Int}, + {&duration, "duration", "Duration", DEF_DURATION, t_Int}, + {&do_bbox, "bbox", "BBox", DEF_BBOX, t_Bool}, + {&do_grid, "grid", "Grid", DEF_GRID, t_Bool}, + {&smooth_p, "smooth", "Smooth", DEF_SMOOTH, t_Bool}, + {&static_parms, "parameters", "Parameters", DEF_PARMS, t_String}, }; ModeSpecOpt ccs_opts = {countof(opts), opts, countof(vars), vars, NULL}; @@ -768,7 +768,7 @@ static void draw_label (ModeInfo *mi, const char *s) { spheremonics_configuration *cc = &ccs[MI_SCREEN(mi)]; - int i; + unsigned int i; glPushAttrib(GL_TRANSFORM_BIT | GL_ENABLE_BIT); glDisable(GL_LIGHTING); @@ -871,7 +871,7 @@ init_spheremonics (ModeInfo *mi) cc->m_max = 4; /* 9? */ { - int i; + unsigned int i; for (i = 0; i < countof(cc->dm); i++) cc->dm[i] = 1; /* going up! */