/solaris-x11-s12/open-src/app/xlock/sun-src/ |
H A D | flame.c | 108 XSetForeground(dsp, Scr[screen].gc, ssblack[screen].pixel); 109 XFillRectangle(dsp, win, Scr[screen].gc, 0, 0, fs->width, fs->height); 111 if (Scr[screen].npixels > 2) { 112 fs->pixcol = halfrandom(Scr[screen].npixels); 113 XSetForeground(dsp, Scr[screen].gc, Scr[screen].pixels[fs->pixcol]); 115 XSetForeground(dsp, Scr[screen].gc, sswhite[screen].pixel); 137 XDrawPoints(dsp, fs->win, Scr[screen].gc, fs->pts, 172 if (Scr[screen].npixels > 2) { 173 XSetForeground(dsp, Scr[scree [all...] |
H A D | hopalong.c | 116 XSetForeground(dsp, Scr[screen].gc, ssblack[screen].pixel); 117 XFillRectangle(dsp, win, Scr[screen].gc, 0, 0, 119 XSetForeground(dsp, Scr[screen].gc, sswhite[screen].pixel); 133 if (!mono && Scr[screen].npixels > 2) { 134 XSetForeground(dsp, Scr[screen].gc, Scr[screen].pixels[hp->pix]); 135 if (++hp->pix >= Scr[screen].npixels) 148 XDrawPoints(dsp, win, Scr[screen].gc,
|
H A D | image.c | 89 XSetForeground(dsp, Scr[screen].gc, ssblack[screen].pixel); 92 XFillRectangle(dsp, win, Scr[screen].gc, 100 if (Scr[screen].npixels == 2) 101 XSetForeground(dsp, Scr[screen].gc, sswhite[screen].pixel); 103 if (Scr[screen].npixels > 2) 104 XSetForeground(dsp, Scr[screen].gc, 105 Scr[screen].pixels[random() % Scr[screen].npixels]); 107 XPutImage(dsp, win, Scr[screen].gc, &logo, 145 XSetForeground(dsp, Scr[scree [all...] |
H A D | qix.c | 124 XSetForeground(dsp, Scr[screen].gc, ssblack[screen].pixel); 125 XFillRectangle(dsp, win, Scr[screen].gc, 0, 0, qp->width, qp->height); 152 XSetForeground(dsp, Scr[screen].gc, ssblack[screen].pixel); 153 XDrawLine(dsp, win, Scr[screen].gc, 156 if (!mono && Scr[screen].npixels > 2) { 157 XSetForeground(dsp, Scr[screen].gc, Scr[screen].pixels[qp->pix]); 158 if (++qp->pix >= Scr[screen].npixels) 161 XSetForeground(dsp, Scr[screen].gc, sswhite[screen].pixel); 163 XDrawLine(dsp, win, Scr[scree [all...] |
H A D | rotor.c | 168 XSetForeground(dsp, Scr[screen].gc, ssblack[screen].pixel); 169 XFillRectangle(dsp, win, Scr[screen].gc, 0, 0, xgwa.width, xgwa.height); 231 XSetForeground(dsp, Scr[screen].gc, ssblack[screen].pixel); 240 XDrawLine(dsp, win, Scr[screen].gc, x1, y1, x2, y2); 242 if (!mono && Scr[screen].npixels > 2) { 243 XSetForeground(dsp, Scr[screen].gc, 244 Scr[screen].pixels[fs->pix]); 245 if (++fs->pix >= Scr[screen].npixels) 248 XSetForeground(dsp, Scr[screen].gc, sswhite[screen].pixel); 257 XDrawLine(dsp, win, Scr[scree [all...] |
H A D | swarm.c | 99 XSetForeground(dsp, Scr[screen].gc, ssblack[screen].pixel); 100 XFillRectangle(dsp, win, Scr[screen].gc, 0, 0, sp->width, sp->height); 229 XSetForeground(dsp, Scr[screen].gc, ssblack[screen].pixel); 230 XDrawLine(dsp, win, Scr[screen].gc, 232 XDrawSegments(dsp, win, Scr[screen].gc, sp->old_segs, (int) sp->beecount); 234 XSetForeground(dsp, Scr[screen].gc, sswhite[screen].pixel); 235 XDrawLine(dsp, win, Scr[screen].gc, 237 if (!mono && Scr[screen].npixels > 2) { 238 XSetForeground(dsp, Scr[screen].gc, Scr[scree [all...] |
H A D | pyro.c | 203 if (!mono && Scr[screen].npixels > 3) 204 pp->rockpixel = Scr[screen].pixels[3]; /* Just the right shade of 270 if (!mono && (npix = Scr[screen].npixels) > 2) { 271 color1 = Scr[screen].pixels[pix = (int) random() % npix]; 272 color2 = Scr[screen].pixels[(pix + (npix / 2)) % npix]; 361 XSetForeground(dsp, Scr[screen].gc, pp->rockpixel); 362 XFillRectangle(dsp, win, Scr[screen].gc, (int) (rp->x), (int) (rp->y), 419 XSetForeground(dsp, Scr[screen].gc, rp->color1); 421 XFillRectangles(dsp, win, Scr[screen].gc, rp->Xpoints, nstars); 423 XSetForeground(dsp, Scr[scree [all...] |
H A D | life.c | 342 XSetForeground(dsp, Scr[screen].gc, sswhite[screen].pixel); 343 if (!mono && Scr[screen].npixels > 2) { 349 if (age < Scr[screen].npixels * 0.7) 352 XSetForeground(dsp, Scr[screen].gc, Scr[screen].pixels[age]); 356 XFillRectangle(dsp, win, Scr[screen].gc, 359 XPutImage(dsp, win, Scr[screen].gc, &logo, 373 XSetForeground(dsp, Scr[screen].gc, ssblack[screen].pixel); 374 XFillRectangle(dsp, win, Scr[screen].gc, 561 XSetForeground(dsp, Scr[scree [all...] |
H A D | xlock.c | 174 perscreen Scr[MAXSCREENS]; variable 445 XSetForeground(dsp, Scr[screen].gc, bgcol[screen].pixel); 453 XFillRectangle(dsp, win[screen], Scr[screen].gc, 549 XSetForeground(dsp, Scr[screen].gc, bgcol[screen].pixel); 551 XFillRectangle(dsp, win[screen], Scr[screen].gc, 572 XSetForeground(dsp, Scr[screen].gc, bgcol[screen].pixel); 574 XFillRectangle(dsp, win[screen], Scr[screen].gc, 871 XSetForeground(dsp, Scr[screen].gc, bgcol[screen].pixel); 872 XFillRectangle(dsp, win[screen], Scr[screen].gc, 1032 XFillRectangle(dsp, win[screen], Scr[scree [all...] |
H A D | xlock.h | 62 extern perscreen Scr[MAXSCREENS];
|