mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
goom: Clarified precedence between % and ?
https://bugzilla.gnome.org/show_bug.cgi?id=736887
This commit is contained in:
parent
f62076e49c
commit
36140ccf69
1 changed files with 3 additions and 3 deletions
|
@ -605,7 +605,7 @@ ifs_update (PluginInfo * goomInfo, Pixel * data, Pixel * back, int increment,
|
||||||
if (((col[VERT] > 32) && (col[ROUGE] < col[VERT] + 40)
|
if (((col[VERT] > 32) && (col[ROUGE] < col[VERT] + 40)
|
||||||
&& (col[VERT] < col[ROUGE] + 20) && (col[BLEU] < 64)
|
&& (col[VERT] < col[ROUGE] + 20) && (col[BLEU] < 64)
|
||||||
&& (RAND () % 20 == 0)) && (justChanged < 0)) {
|
&& (RAND () % 20 == 0)) && (justChanged < 0)) {
|
||||||
mode = RAND () % 3 ? MOD_FEU : MOD_MERVER;
|
mode = (RAND () % 3) ? MOD_FEU : MOD_MERVER;
|
||||||
justChanged = 250;
|
justChanged = 250;
|
||||||
}
|
}
|
||||||
} else if (mode == MOD_MERVER) {
|
} else if (mode == MOD_MERVER) {
|
||||||
|
@ -656,7 +656,7 @@ ifs_update (PluginInfo * goomInfo, Pixel * data, Pixel * back, int increment,
|
||||||
if (((col[VERT] > 32) && (col[ROUGE] < col[VERT] + 40)
|
if (((col[VERT] > 32) && (col[ROUGE] < col[VERT] + 40)
|
||||||
&& (col[VERT] < col[ROUGE] + 20) && (col[BLEU] < 64)
|
&& (col[VERT] < col[ROUGE] + 20) && (col[BLEU] < 64)
|
||||||
&& (RAND () % 20 == 0)) && (justChanged < 0)) {
|
&& (RAND () % 20 == 0)) && (justChanged < 0)) {
|
||||||
mode = RAND () % 3 ? MOD_FEU : MOD_MER;
|
mode = (RAND () % 3) ? MOD_FEU : MOD_MER;
|
||||||
justChanged = 250;
|
justChanged = 250;
|
||||||
}
|
}
|
||||||
} else if (mode == MOD_FEU) {
|
} else if (mode == MOD_FEU) {
|
||||||
|
@ -714,7 +714,7 @@ ifs_update (PluginInfo * goomInfo, Pixel * data, Pixel * back, int increment,
|
||||||
if (((col[ROUGE] < 64) && (col[VERT] > 32) && (col[VERT] < col[BLEU])
|
if (((col[ROUGE] < 64) && (col[VERT] > 32) && (col[VERT] < col[BLEU])
|
||||||
&& (col[BLEU] > 32)
|
&& (col[BLEU] > 32)
|
||||||
&& (RAND () % 20 == 0)) && (justChanged < 0)) {
|
&& (RAND () % 20 == 0)) && (justChanged < 0)) {
|
||||||
mode = RAND () % 2 ? MOD_MER : MOD_MERVER;
|
mode = (RAND () % 2) ? MOD_MER : MOD_MERVER;
|
||||||
justChanged = 250;
|
justChanged = 250;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue