- Joined
- Nov 23, 2008
- Messages
- 187
I don't know, was the same problem discussed or not, but I have to post here.
The image generated by Hive (for uploaded icon) is not the same as BLP file contains. It has swapped red and blue colors.
Examples: BTNSourceFix, BTNSharkPirate, BTNSpell1
In fact, The Hive incorrectly read that type of icons, not bordering programs generate inverted ones. I should notice that examples listed above are correctly opened with war3viewer and looks normal in-game.
I have an explanation for this bug:
There are two types of BLP (used in Warcraft) - compressed BLP (which uses jpeg compression), and paletted BLP (have similar structure as in paletted TGA). The problem with reading paletted BLPs. Magos wrote in his BLP file specification:
I think, fixing that bug would not take much time. Thanks.
The image generated by Hive (for uploaded icon) is not the same as BLP file contains. It has swapped red and blue colors.
Examples: BTNSourceFix, BTNSharkPirate, BTNSpell1
In fact, The Hive incorrectly read that type of icons, not bordering programs generate inverted ones. I should notice that examples listed above are correctly opened with war3viewer and looks normal in-game.
I have an explanation for this bug:
There are two types of BLP (used in Warcraft) - compressed BLP (which uses jpeg compression), and paletted BLP (have similar structure as in paletted TGA). The problem with reading paletted BLPs. Magos wrote in his BLP file specification:
but in fact the palette consists of BGRA cells. That's why red and blue colors are inverted.Each cell in the index list refers to a location in the palette where the corresponding RGBA value is.
I think, fixing that bug would not take much time. Thanks.