Mercurial > hg > demos > krapula
comparison krapula.c @ 50:8c65e57cc81a
Delete dead function.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 01 Mar 2015 18:53:42 +0200 |
parents | 333d9075f5ea |
children | 51110f424dfd |
comparison
equal
deleted
inserted
replaced
49:333d9075f5ea | 50:8c65e57cc81a |
---|---|
23 pal[n].g = n; | 23 pal[n].g = n; |
24 pal[n].b = n; | 24 pal[n].b = n; |
25 } | 25 } |
26 | 26 |
27 SDL_SetColors(scr, pal, 0, DM_COLORS); | 27 SDL_SetColors(scr, pal, 0, DM_COLORS); |
28 } | |
29 | |
30 | |
31 void dmRandom(SDL_Surface *screen, int q) | |
32 { | |
33 Uint8 *pix = screen->pixels; | |
34 int xc, yc; | |
35 | |
36 for (yc = 0; yc < screen->h; yc++) | |
37 { | |
38 Uint8 *dp = pix; | |
39 | |
40 for (xc = 0; xc < screen->w; xc++) | |
41 *dp++ = yc + (xc ^ q) + (yc & q); | |
42 | |
43 pix += screen->pitch; | |
44 } | |
45 } | 28 } |
46 | 29 |
47 | 30 |
48 #define QWIDTH 256 | 31 #define QWIDTH 256 |
49 #define QHEIGHT 160 | 32 #define QHEIGHT 160 |