X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fgltext.c;h=fca3147564a26f46c22f216b7c41b2129343be55;hb=e4fa2ac140f7bc56571373a7b7eb585fa4500e38;hp=bb3e9db3a9268fa5da7fc066a80002c0c6f4f9f6;hpb=2c902d6065f9856adf31e8540a94f1e42e68e905;p=xscreensaver diff --git a/hacks/glx/gltext.c b/hacks/glx/gltext.c index bb3e9db3..fca31475 100644 --- a/hacks/glx/gltext.c +++ b/hacks/glx/gltext.c @@ -1,4 +1,4 @@ -/* gltext, Copyright (c) 2001, 2002 Jamie Zawinski +/* gltext, Copyright (c) 2001, 2002, 2003 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -98,9 +98,9 @@ static XrmOptionDescRec opts[] = { }; static argtype vars[] = { - {(caddr_t *) &text_fmt, "text", "Text", DEF_TEXT, t_String}, - {(caddr_t *) &do_spin, "spin", "Spin", DEF_SPIN, t_String}, - {(caddr_t *) &do_wander, "wander", "Wander", DEF_WANDER, t_Bool}, + {&text_fmt, "text", "Text", DEF_TEXT, t_String}, + {&do_spin, "spin", "Spin", DEF_SPIN, t_String}, + {&do_wander, "wander", "Wander", DEF_WANDER, t_Bool}, }; ModeSpecOpt sws_opts = {countof(opts), opts, countof(vars), vars, NULL}; @@ -355,7 +355,7 @@ fill_character (GLUTstrokeFont font, int c, Bool wire) coord->x, coord->y, 0, tube_width, tube_width * 0.15, - TUBE_FACES, smooth, wire); + TUBE_FACES, smooth, True, wire); lx = coord->x; ly = coord->y; } @@ -389,9 +389,9 @@ text_extents (const char *string, int *wP, int *hP) if (w > *wP) *wP = w; *hP += line_height; - s++; lines++; if (*s == 0) break; + s++; } else s++;