Make the palette in Quake II CIN files opaque and increase its dynamics.

This commit is contained in:
Carl Eugen Hoyos 2011-12-24 12:44:30 +01:00
parent f2ed115899
commit 32c49389bc
1 changed files with 3 additions and 1 deletions

View File

@ -248,7 +248,9 @@ static int idcin_read_packet(AVFormatContext *s,
r = palette_buffer[i * 3 ] << palette_scale;
g = palette_buffer[i * 3 + 1] << palette_scale;
b = palette_buffer[i * 3 + 2] << palette_scale;
palette[i] = (r << 16) | (g << 8) | (b);
palette[i] = (0xFFU << 24) | (r << 16) | (g << 8) | (b);
if (palette_scale == 2)
palette[i] |= palette[i] >> 6 & 0x30303;
}
}