summaryrefslogtreecommitdiffstats
path: root/Smoke/heightplots.c
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2007-12-20 11:52:11 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2007-12-20 11:52:11 (GMT)
commit6f19aad735759adc16fe149557d275880250cac1 (patch)
treea3b445665d02cc52770e9c598b917a6ab3878586 /Smoke/heightplots.c
parentb3a5933d58d67788ece2a3a12f6c073fd9c33261 (diff)
download2iv35-6f19aad735759adc16fe149557d275880250cac1.zip
2iv35-6f19aad735759adc16fe149557d275880250cac1.tar.gz
2iv35-6f19aad735759adc16fe149557d275880250cac1.tar.bz2
replaced int type with float
Diffstat (limited to 'Smoke/heightplots.c')
-rw-r--r--Smoke/heightplots.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/Smoke/heightplots.c b/Smoke/heightplots.c
index 57fee1d..c4546df 100644
--- a/Smoke/heightplots.c
+++ b/Smoke/heightplots.c
@@ -18,7 +18,7 @@ static int heightplots_num_colors = PALETTE_MAXCOLORS;
static int heightplots_colormap = PALETTE_BLACKWHITE;
-static int heightplots_alpha = 1.0f;
+static float heightplots_alpha = 1.0f;
static fftw_real *heightplots_frame;
@@ -53,7 +53,12 @@ int heightplots_get_colormap(void)
return heightplots_colormap;
}
-int heightplots_get_alpha(void)
+void heightplots_set_alpha(float alpha)
+{
+ heightplots_alpha = alpha;
+}
+
+float heightplots_get_alpha(void)
{
return heightplots_alpha;
}