Change HTML4 entities to HTML5
< to < > to > & to &
This commit is contained in:
parent
56a4baa60e
commit
b8e7ce7165
105 changed files with 1117 additions and 1117 deletions
18
55-03.html
18
55-03.html
|
|
@ -44,22 +44,22 @@
|
|||
special-cased, and everything else is handled by a 2-2-2 model. */
|
||||
int ModelColorToColorIndex(ModelColor * Color)
|
||||
{
|
||||
if (Color->Red == 0) {
|
||||
if (Color->Green == 0) {
|
||||
if (Color->Red == 0) {
|
||||
if (Color->Green == 0) {
|
||||
/* Pure blue */
|
||||
return(192+(Color->Blue >> 2));
|
||||
} else if (Color->Blue == 0) {
|
||||
return(192+(Color->Blue >> 2));
|
||||
} else if (Color->Blue == 0) {
|
||||
/* Pure green */
|
||||
return(128+(Color->Green >> 2));
|
||||
return(128+(Color->Green >> 2));
|
||||
}
|
||||
} else if ((Color->Green == 0) && (Color->Blue == 0)) {
|
||||
} else if ((Color->Green == 0) && (Color->Blue == 0)) {
|
||||
/* Pure red */
|
||||
return(64+(Color->Red >> 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->Red & 0xC0) >> 2) | ((Color->Green & 0xC0) >> 4) |
|
||||
((Color->Blue & 0xC0) >> 6));
|
||||
return(((Color->Red & 0xC0) >> 2) | ((Color->Green & 0xC0) >> 4) |
|
||||
((Color->Blue & 0xC0) >> 6));
|
||||
}
|
||||
|
||||
</PRE>
|
||||
|
|
|
|||
Loading…
Reference in a new issue