mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 23:30:04 +00:00
Product code 34 doesn't use data level threshold halfwords
This commit is contained in:
parent
7b16972cb1
commit
0fc1b3a2bb
1 changed files with 5 additions and 4 deletions
|
|
@ -148,6 +148,7 @@ void Level3ProductView::UpdateColorTable()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int16_t productCode = descriptionBlock->product_code();
|
||||||
float offset = descriptionBlock->offset();
|
float offset = descriptionBlock->offset();
|
||||||
float scale = descriptionBlock->scale();
|
float scale = descriptionBlock->scale();
|
||||||
uint16_t threshold = descriptionBlock->threshold();
|
uint16_t threshold = descriptionBlock->threshold();
|
||||||
|
|
@ -184,7 +185,7 @@ void Level3ProductView::UpdateColorTable()
|
||||||
float f;
|
float f;
|
||||||
|
|
||||||
// Different products use different scale/offset formulas
|
// Different products use different scale/offset formulas
|
||||||
if (numberOfLevels > 16)
|
if (numberOfLevels > 16 || productCode == 34)
|
||||||
{
|
{
|
||||||
if (i == RANGE_FOLDED && threshold > RANGE_FOLDED)
|
if (i == RANGE_FOLDED && threshold > RANGE_FOLDED)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue