mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:20:05 +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,9 +148,10 @@ void Level3ProductView::UpdateColorTable()
|
|||
return;
|
||||
}
|
||||
|
||||
float offset = descriptionBlock->offset();
|
||||
float scale = descriptionBlock->scale();
|
||||
uint16_t threshold = descriptionBlock->threshold();
|
||||
int16_t productCode = descriptionBlock->product_code();
|
||||
float offset = descriptionBlock->offset();
|
||||
float scale = descriptionBlock->scale();
|
||||
uint16_t threshold = descriptionBlock->threshold();
|
||||
|
||||
// If the threshold is 2, the range min should be set to 1 for range folding
|
||||
uint16_t rangeMin = std::min<uint16_t>(1, threshold);
|
||||
|
|
@ -184,7 +185,7 @@ void Level3ProductView::UpdateColorTable()
|
|||
float f;
|
||||
|
||||
// Different products use different scale/offset formulas
|
||||
if (numberOfLevels > 16)
|
||||
if (numberOfLevels > 16 || productCode == 34)
|
||||
{
|
||||
if (i == RANGE_FOLDED && threshold > RANGE_FOLDED)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue