From 4793f435c911a5224787c01100307634d0d3665a Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 24 May 2012 17:07:40 +1000 Subject: [PATCH] Remove debugging output from image writer --- noise.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/noise.cpp b/noise.cpp index 3a121ef4..17099969 100644 --- a/noise.cpp +++ b/noise.cpp @@ -29,15 +29,9 @@ util::noise::image2d (uint8_t *restrict pixels, size_t width, size_t height, const util::noise::fractal &p) { - util::range r(std::numeric_limits::quiet_NaN (), - std::numeric_limits::quiet_NaN ()); - for (size_t y = 0; y < height; ++y) for (size_t x = 0; x < width; ++x) { - double v = p.eval (x / double (width), y / double (height)); - r.expand (v); + double v = p.eval (x, y); pixels[x + y * width] = v * std::numeric_limits::max (); } - - std::cerr << r << "\n"; }