projects
/
imager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfb2c63
)
set pixels with no coverage to all zero
author
Tony Cook
<tony@develop-help.com>
Tue, 23 Feb 2016 11:00:08 +0000
(22:00 +1100)
committer
Tony Cook
<tony@develop-help.com>
Tue, 23 Feb 2016 11:00:08 +0000
(22:00 +1100)
valgrind complained about use of uninitialized values
rotate.im
patch
|
blob
|
blame
|
history
diff --git
a/rotate.im
b/rotate.im
index 861810d48c5ab308b62291166252570e9532f352..250d778bc0d91a298d6a54f42fe320725e83b2a8 100644
(file)
--- a/
rotate.im
+++ b/
rotate.im
@@
-152,6
+152,10
@@
static i_color interp_i_color(i_color before, i_color after, double pos,
out.channel[ch] = I_LIMIT_8(out_level);
}
}
+ else {
+ for (ch = 0; ch < channels-1; ++ch)
+ out.channel[ch] = 0;
+ }
out.channel[channels-1] = total_cover;
}
@@
-188,6
+192,10
@@
static i_fcolor interp_i_fcolor(i_fcolor before, i_fcolor after, double pos,
out.channel[ch] = I_LIMIT_DOUBLE(out_level);
}
}
+ else {
+ for (ch = 0; ch < channels-1; ++ch)
+ out.channel[ch] = 0;
+ }
out.channel[channels-1] = total_cover;
}