Skip to content
Snippets Groups Projects
Commit 32c49389 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos
Browse files

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

parent f2ed1158
No related branches found
No related tags found
No related merge requests found
...@@ -248,7 +248,9 @@ static int idcin_read_packet(AVFormatContext *s, ...@@ -248,7 +248,9 @@ static int idcin_read_packet(AVFormatContext *s,
r = palette_buffer[i * 3 ] << palette_scale; r = palette_buffer[i * 3 ] << palette_scale;
g = palette_buffer[i * 3 + 1] << palette_scale; g = palette_buffer[i * 3 + 1] << palette_scale;
b = palette_buffer[i * 3 + 2] << 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;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment