~ubuntu-branches/ubuntu/dapper/xscreensaver/dapper

« back to all changes in this revision

Viewing changes to hacks/xrayswarm.c

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2005-10-11 21:00:42 UTC
  • mfrom: (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20051011210042-u7q6zslgevdxspr3
Tags: 4.21-4ubuntu17
updated pt_BR again, fixed to UTF-8 

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
        {0,0,0,0}
66
66
};
67
67
 
68
 
static char colors[768];
 
68
static unsigned char colors[768];
69
69
 
70
70
static Display *dpy;
71
71
static Window win;
233
233
  /* random colors start at 52 */
234
234
  numRandomColors = MAX_TRAIL_LEN;
235
235
 
236
 
  colors[n++] = random()&255;
237
 
  colors[n++] = random()&255;
238
 
  colors[n++] = colors[n-2]/2 + colors[n-3]/2;
 
236
  colors[n] = random()&255; n++;
 
237
  colors[n] = random()&255; n++;
 
238
  colors[n] = colors[n-2]/2 + colors[n-3]/2; n++;
239
239
 
240
240
  for (i = 0; i < numRandomColors; i++) {
241
 
    colors[n++] = (colors[n-3] + (random()&31) - 16)&255;
242
 
    colors[n++] = (colors[n-3] + (random()&31) - 16)&255;
243
 
    colors[n++] = colors[n-2]/(float)(i+2) + colors[n-3]/(float)(i+2);
 
241
    colors[n] = (colors[n-3] + (random()&31) - 16)&255; n++;
 
242
    colors[n] = (colors[n-3] + (random()&31) - 16)&255; n++;
 
243
    colors[n] = colors[n-2]/(float)(i+2) + colors[n-3]/(float)(i+2); n++;
244
244
  }
245
245
  
246
246
  numColors = n/3 + 1;