Skip to content

Commit

Permalink
Set the alpha to opaque when loading an indexed image
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 6, 2024
1 parent 0d418a2 commit c5bb635
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/IMG_ImageIO.m
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ static CFDictionaryRef CreateHintDictionary(CFStringRef uti_string_hint)
palette->colors[i].r = entry[0];
palette->colors[i].g = entry[1];
palette->colors[i].b = entry[2];
palette->colors[i].a = SDL_ALPHA_OPAQUE;
entry += num_components;
}
}
Expand Down

0 comments on commit c5bb635

Please sign in to comment.