Commit 522cb6ab authored by Don Moir's avatar Don Moir Committed by Paul B Mahol

gifdec: use transparent instead of background color index

Wrong code was commited in 64f4fb75.
parent b84871b8
...@@ -202,7 +202,7 @@ static int gif_read_image(GifState *s) ...@@ -202,7 +202,7 @@ static int gif_read_image(GifState *s)
s->gce_w = width; s->gce_h = height; s->gce_w = width; s->gce_h = height;
if (s->gce_disposal == GCE_DISPOSAL_BACKGROUND) { if (s->gce_disposal == GCE_DISPOSAL_BACKGROUND) {
if (s->background_color_index >= 0) if (s->transparent_color_index >= 0)
s->stored_bg_color = s->trans_color; s->stored_bg_color = s->trans_color;
else else
s->stored_bg_color = s->bg_color; s->stored_bg_color = s->bg_color;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment