projects
/
imagemagick
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55f6a35
)
(no commit message)
author
cristy
<urban-warrior@git.imagemagick.org>
Sat, 13 Jun 2015 22:43:57 +0000
(22:43 +0000)
committer
cristy
<urban-warrior@git.imagemagick.org>
Sat, 13 Jun 2015 22:43:57 +0000
(22:43 +0000)
MagickCore/fx.c
patch
|
blob
|
history
diff --git
a/MagickCore/fx.c
b/MagickCore/fx.c
index 169110e3c76e6c5103240b1f764536f019b70e4e..e68260c2b884f5f22e7399d90e8a56479842da6f 100644
(file)
--- a/
MagickCore/fx.c
+++ b/
MagickCore/fx.c
@@
-3632,6
+3632,10
@@
static inline Quantum PlasmaPixel(RandomInfo *random_info,
plasma=ClampToQuantum(pixel+noise*GetPseudoRandomValue(random_info)-
noise/2.0);
+ if (plasma <= 0)
+ return((Quantum) 0);
+ if (plasma > QuantumRange)
+ return(QuantumRange);
return(plasma);
}