mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 17:30:05 +00:00
For 16-level products, only the lower-order byte should be used for the data level threshold
This commit is contained in:
parent
fd35a912e5
commit
f8765e0d2d
1 changed files with 1 additions and 1 deletions
|
|
@ -222,7 +222,7 @@ void Level3ProductView::UpdateColorTable()
|
||||||
if ((th & 0x8000u) == 0)
|
if ((th & 0x8000u) == 0)
|
||||||
{
|
{
|
||||||
// If bit 0 is zero, then the LSB is numeric
|
// If bit 0 is zero, then the LSB is numeric
|
||||||
f = static_cast<float>(th);
|
f = static_cast<float>(th & 0x00ffu);
|
||||||
lut[lutIndex] = p->colorTable_->Color(f);
|
lut[lutIndex] = p->colorTable_->Color(f);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue