summaryrefslogtreecommitdiffstats
path: root/Smoke/palette.c
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2007-12-19 15:44:23 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2007-12-19 15:44:23 (GMT)
commita60088999da4f44bf5885f431fe78eb87d643ae7 (patch)
tree27940a3cd14a7cdee60ddb0263bf1173c51df56c /Smoke/palette.c
parentc287b3f591fe3e10dceedfd90a5ce71b2c703988 (diff)
download2iv35-a60088999da4f44bf5885f431fe78eb87d643ae7.zip
2iv35-a60088999da4f44bf5885f431fe78eb87d643ae7.tar.gz
2iv35-a60088999da4f44bf5885f431fe78eb87d643ae7.tar.bz2
splitted up glyphs
Diffstat (limited to 'Smoke/palette.c')
-rw-r--r--Smoke/palette.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Smoke/palette.c b/Smoke/palette.c
index 0fdcb7c..e5727c9 100644
--- a/Smoke/palette.c
+++ b/Smoke/palette.c
@@ -63,17 +63,17 @@ struct color4f set_palette(int colormap_sort, float value, int num_colors)
switch (colormap_sort)
{
- case COLOR_BLACKWHITE:
+ case PALETTE_BLACKWHITE:
R = G = B = value;
break;
- case COLOR_RAINBOW:
+ case PALETTE_RAINBOW:
rainbow(value,&R,&G,&B);
break;
- case COLOR_BANDS:
+ case PALETTE_BANDS:
value *= NLEVELS; value = (float)(int)(value); value/= NLEVELS;
rainbow(value,&R,&G,&B);
break;
- case COLOR_BLUE_GREEN_RED:
+ case PALETTE_BLUE_GREEN_RED:
if (value < -0.1)
{
R = G = 0;
@@ -96,10 +96,10 @@ struct color4f set_palette(int colormap_sort, float value, int num_colors)
G = B = 0;
}
break;
- case COLOR_WILRIK:
+ case PALETTE_WILRIK:
colormap_fire(value, &R, &G, &B);
break;
- case COLOR_OLIVER:
+ case PALETTE_OLIVER:
rainbow(value, &R, &G, &B);
break;