diff options
Diffstat (limited to 'Smoke/renderer_gl.c')
-rw-r--r-- | Smoke/renderer_gl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Smoke/renderer_gl.c b/Smoke/renderer_gl.c index 3fde744..3fc3a75 100644 --- a/Smoke/renderer_gl.c +++ b/Smoke/renderer_gl.c @@ -81,7 +81,6 @@ static void render_legend(void) { float value, clamp_scaled_min, clamp_scaled_max, scale_scaled_min, scale_scaled_max; - value = (float)((float)i/winWidth); color = colormap_get_color(value); @@ -221,7 +220,7 @@ static void render_normals(void) struct point *normals; DIM = fluids_get_dim(); - wn = (fftw_real)winWidth / (fftw_real)(DIM + 1); // Grid cell width + wn = (fftw_real)winWidth / (fftw_real)(DIM + 1); // Grid cell width hn = (fftw_real)winHeight / (fftw_real)(DIM + 1); // Grid cell height height = heightplots_get_frame(); |