chiark / gitweb /
Pixel livecount now correctly handles pixels which start out in the _nomore_ state.
authorRoss Younger <onyx-commits@impropriety.org.uk>
Mon, 4 Feb 2013 07:02:28 +0000 (20:02 +1300)
committerRoss Younger <onyx-commits@impropriety.org.uk>
Mon, 4 Feb 2013 07:02:28 +0000 (20:02 +1300)
libbrot2/Plot3Chunk.cpp

index e7aecf3..7863fb1 100644 (file)
@@ -97,6 +97,8 @@ void Plot3Chunk::prepare()
        for (j=0; j<_height; j++) {
                for (i=0; i<_width; i++) {
                        _fract.prepare_pixel(render_point, _data[out_index]);
+                       if (_data[out_index].nomore)
+                               --_live_pixels;
                        ++out_index;
                        render_point += colstep;
                }