mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:37:43 +00:00
LibGfx: Fix Lagom build (possible uninitialized variable warnings)
This commit is contained in:
parent
453affb101
commit
95ed363b15
1 changed files with 6 additions and 2 deletions
|
@ -414,7 +414,9 @@ static bool load_gif_frame_descriptors(GIFLoadingContext& context)
|
||||||
printf("color_map_entry_count: %d\n", color_map_entry_count);
|
printf("color_map_entry_count: %d\n", color_map_entry_count);
|
||||||
|
|
||||||
for (int i = 0; i < color_map_entry_count; ++i) {
|
for (int i = 0; i < color_map_entry_count; ++i) {
|
||||||
u8 r, g, b;
|
u8 r = 0;
|
||||||
|
u8 g = 0;
|
||||||
|
u8 b = 0;
|
||||||
stream >> r >> g >> b;
|
stream >> r >> g >> b;
|
||||||
context.logical_screen.color_map[i] = { r, g, b };
|
context.logical_screen.color_map[i] = { r, g, b };
|
||||||
}
|
}
|
||||||
|
@ -522,7 +524,9 @@ static bool load_gif_frame_descriptors(GIFLoadingContext& context)
|
||||||
size_t local_color_table_size = pow(2, (packed_fields & 7) + 1);
|
size_t local_color_table_size = pow(2, (packed_fields & 7) + 1);
|
||||||
|
|
||||||
for (size_t i = 0; i < local_color_table_size; ++i) {
|
for (size_t i = 0; i < local_color_table_size; ++i) {
|
||||||
u8 r, g, b;
|
u8 r = 0;
|
||||||
|
u8 g = 0;
|
||||||
|
u8 b = 0;
|
||||||
stream >> r >> g >> b;
|
stream >> r >> g >> b;
|
||||||
image.color_map[i] = { r, g, b };
|
image.color_map[i] = { r, g, b };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue