Browse Source

* Fix cucul_set_dither_palette() argument types in cacademo.

tags/v0.99.beta14
Sam Hocevar sam 16 years ago
parent
commit
e60e274111
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/cacademo.c

+ 3
- 3
src/cacademo.c View File

@@ -322,7 +322,7 @@ void plasma(enum action action, cucul_canvas_t *cv)
{ {
static cucul_dither_t *dither; static cucul_dither_t *dither;
static uint8_t *screen; static uint8_t *screen;
static unsigned int red[256], green[256], blue[256], alpha[256];
static uint32_t red[256], green[256], blue[256], alpha[256];
static double r[3], R[6]; static double r[3], R[6];


int i, x, y; int i, x, y;
@@ -429,7 +429,7 @@ void metaballs(enum action action, cucul_canvas_t *cv)
{ {
static cucul_dither_t *cucul_dither; static cucul_dither_t *cucul_dither;
static uint8_t *screen; static uint8_t *screen;
static unsigned int r[256], g[256], b[256], a[256];
static uint32_t r[256], g[256], b[256], a[256];
static float dd[METABALLS], di[METABALLS], dj[METABALLS], dk[METABALLS]; static float dd[METABALLS], di[METABALLS], dj[METABALLS], dk[METABALLS];
static unsigned int x[METABALLS], y[METABALLS]; static unsigned int x[METABALLS], y[METABALLS];
static float i = 10.0, j = 17.0, k = 11.0; static float i = 10.0, j = 17.0, k = 11.0;
@@ -581,7 +581,7 @@ void moire(enum action action, cucul_canvas_t *cv)
static cucul_dither_t *dither; static cucul_dither_t *dither;
static uint8_t *screen; static uint8_t *screen;
static float d[6]; static float d[6];
static unsigned int red[256], green[256], blue[256], alpha[256];
static uint32_t red[256], green[256], blue[256], alpha[256];


int i, x, y; int i, x, y;




Loading…
Cancel
Save