projects
/
csRadar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a15ca2
)
fixed error when scaling c32f output
author
hgn
<hgodden00@gmail.com>
Sat, 17 Jul 2021 20:27:26 +0000
(21:27 +0100)
committer
hgn
<hgodden00@gmail.com>
Sat, 17 Jul 2021 20:27:26 +0000
(21:27 +0100)
csrDraw.h
patch
|
blob
|
history
diff --git
a/csrDraw.h
b/csrDraw.h
index 6bcd6e5ac3975734ef00ddef35cec2ffd6965566..a3f601e722575d887b965ccd1865f4f64f86ac8d 100644
(file)
--- a/
csrDraw.h
+++ b/
csrDraw.h
@@
-510,7
+510,7
@@
void csr_rt_save_c32f( csr_target *rt, const char *path, u32 offset )
{
float *image = (float *)csr_malloc( rt->x*rt->y*3*sizeof(float) );
- float contrib =
255
.f/(float)rt->num_samples;
+ float contrib =
1
.f/(float)rt->num_samples;
for( int i = 0; i < rt->x*rt->y; i ++ )
{