Change HTML4 entities to HTML5

&lt to <
&gt to >
&amp to &
This commit is contained in:
James Gregory 2013-12-30 14:33:39 +11:00
commit b8e7ce7165
105 changed files with 1117 additions and 1117 deletions

View file

@ -44,22 +44,22 @@
special-cased, and everything else is handled by a 2-2-2 model. */
int ModelColorToColorIndex(ModelColor * Color)
{
if (Color-&gtRed == 0) {
if (Color-&gtGreen == 0) {
if (Color->Red == 0) {
if (Color->Green == 0) {
/* Pure blue */
return(192+(Color-&gtBlue &gt&gt 2));
} else if (Color-&gtBlue == 0) {
return(192+(Color->Blue >> 2));
} else if (Color->Blue == 0) {
/* Pure green */
return(128+(Color-&gtGreen &gt&gt 2));
return(128+(Color->Green >> 2));
}
} else if ((Color-&gtGreen == 0) &amp&amp (Color-&gtBlue == 0)) {
} else if ((Color->Green == 0) && (Color->Blue == 0)) {
/* Pure red */
return(64+(Color-&gtRed &gt&gt 2));
return(64+(Color->Red >> 2));
}
/* Multi-color mix; look up the index with the two most significant bits
of each color component */
return(((Color-&gtRed &amp 0xC0) &gt&gt 2) | ((Color-&gtGreen &amp 0xC0) &gt&gt 4) |
((Color-&gtBlue &amp 0xC0) &gt&gt 6));
return(((Color->Red & 0xC0) >> 2) | ((Color->Green & 0xC0) >> 4) |
((Color->Blue & 0xC0) >> 6));
}
</PRE>