diff options
author | Oliver Schinagl <oliver@schinagl.nl> | 2008-01-03 16:33:47 (GMT) |
---|---|---|
committer | Oliver Schinagl <oliver@schinagl.nl> | 2008-01-03 16:33:47 (GMT) |
commit | 3d764e6b458d897d2959771b46c67addbcea8b70 (patch) | |
tree | cfdb03310238ff2301ff32516f602950fe742687 /Smoke/fluids.c | |
parent | 8addeabeb2498955ebb7b62f810fbf2781bcae59 (diff) | |
download | 2iv35-3d764e6b458d897d2959771b46c67addbcea8b70.zip 2iv35-3d764e6b458d897d2959771b46c67addbcea8b70.tar.gz 2iv35-3d764e6b458d897d2959771b46c67addbcea8b70.tar.bz2 |
code cleanup and fixes
Diffstat (limited to 'Smoke/fluids.c')
-rw-r--r-- | Smoke/fluids.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Smoke/fluids.c b/Smoke/fluids.c index c3c776a..1613edf 100644 --- a/Smoke/fluids.c +++ b/Smoke/fluids.c @@ -364,7 +364,6 @@ float get_dataset(int index) fftw_real cell_x = (fftw_real)winWidth / (fftw_real)(DIM + 1); // Grid cell width fftw_real cell_y = (fftw_real)winHeight / (fftw_real)(DIM + 1); // Grid cell heigh float return_value, par_der_x, par_der_y; - static int cur_fr = 0; return_value = 0; @@ -395,6 +394,7 @@ float get_dataset(int index) return return_value; } +#if 0 void set_autoscaling(void) { int k; @@ -414,11 +414,11 @@ void set_autoscaling(void) //threshold = (scale_min + scale_max) / 2; } +#endif -fluids_insert_smoke(int x, int y) +void fluids_insert_smoke(int x, int y) { int xi,yi,X,Y; double dx, dy, len; - int clamp_scaled_min, clamp_scaled_max; static int lx=0,ly=0; //remembers last mouse location /* Density calculations etc are only computed on area's below the slider */ |