diff options
author | Tor Andersson <tor@ghostscript.com> | 2010-07-08 22:32:24 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2010-07-08 22:32:24 +0200 |
commit | 3a4c396334bc500de4c9b1e957f030835b5df65e (patch) | |
tree | c6971cea67729ac9d95aeceed172050db3444f0e /draw/blendmodes.c | |
parent | 839eda4994874c02cbaf546a40d374a4edb16539 (diff) | |
download | mupdf-3a4c396334bc500de4c9b1e957f030835b5df65e.tar.xz |
Simplify #ifdef labyrinth and make some source more c89 compatible.
Diffstat (limited to 'draw/blendmodes.c')
-rw-r--r-- | draw/blendmodes.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/draw/blendmodes.c b/draw/blendmodes.c index 973d79ab..f86fa1ef 100644 --- a/draw/blendmodes.c +++ b/draw/blendmodes.c @@ -150,8 +150,11 @@ sat(int r, int g, int b) static void setsat(int r, int g, int b, int s, int *dr, int *dg, int *db) { - int *m[3] = { &r, &g, &b }; /* min, med, max */ + int *m[3]; /* min, med, max */ int *t; + m[0] = &r; + m[1] = &g; + m[2] = &b; #define SWAP(a, b) (t = a, a = b, b = t) if (*m[0] > *m[1]) SWAP(m[0], m[1]); |