1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Set CD Graphics palette opaque.

This commit is contained in:
Carl Eugen Hoyos 2011-11-12 20:01:50 +01:00
parent 5be097c703
commit 973f3d3e0e

View File

@ -126,7 +126,7 @@ static void cdg_load_palette(CDGraphicsContext *cc, uint8_t *data, int low)
r = ((color >> 8) & 0x000F) * 17; r = ((color >> 8) & 0x000F) * 17;
g = ((color >> 4) & 0x000F) * 17; g = ((color >> 4) & 0x000F) * 17;
b = ((color ) & 0x000F) * 17; b = ((color ) & 0x000F) * 17;
palette[i + array_offset] = r << 16 | g << 8 | b; palette[i + array_offset] = 0xFF << 24 | r << 16 | g << 8 | b;
} }
cc->frame.palette_has_changed = 1; cc->frame.palette_has_changed = 1;
} }