chiark
/
gitweb
/
~ryounger
/
brot2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1e3c5d7
)
Pixel livecount now correctly handles pixels which start out in the _nomore_ state.
author
Ross Younger
<onyx-commits@impropriety.org.uk>
Mon, 4 Feb 2013 07:02:28 +0000 (20:02 +1300)
committer
Ross Younger
<onyx-commits@impropriety.org.uk>
Mon, 4 Feb 2013 07:02:28 +0000 (20:02 +1300)
libbrot2/Plot3Chunk.cpp
patch
|
blob
|
history
diff --git
a/libbrot2/Plot3Chunk.cpp
b/libbrot2/Plot3Chunk.cpp
index
e7aecf3
..
7863fb1
100644
(file)
--- a/
libbrot2/Plot3Chunk.cpp
+++ b/
libbrot2/Plot3Chunk.cpp
@@
-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;
}