Show CLUT 1:0 as transparent in widgets

This commit is contained in:
G.K.MacGregor committed 2022-02-08 17:31:34 +00:00
1 parent 4aa77395c0
commit 1eeeafb51e
1 file changed
+3
+3
View File
@@ -381,6 +381,9 @@ QColor LevelOnePage::CLUTtoQColor(int index, int renderLevel) const
{
int colour12Bit = CLUT(index, renderLevel);
if (index == 8)
return QColor(Qt::transparent);
return QColor(((colour12Bit & 0xf00) >> 8) * 17, ((colour12Bit & 0x0f0) >> 4) * 17, (colour12Bit & 0x00f) * 17);
}