sub: rename SUBBITMAP_RGBA to SUBBITMAP_BGRA

This was a misnomer, the actual channel order is IMGFMT_BGRA (as the
comment explicitly point out). Rename the enum for consistency.
This commit is contained in:
Niklas Haas
2022-01-11 21:03:27 +01:00
committed by Jan Ekström
parent 429402cb08
commit 9e2c0b8baa
10 changed files with 25 additions and 25 deletions

View File

@@ -284,7 +284,7 @@ static struct sub_bitmaps *render_object(struct osd_state *osd,
{
int format = SUBBITMAP_LIBASS;
if (!sub_formats[format] || osd->opts->force_rgba_osd)
format = SUBBITMAP_RGBA;
format = SUBBITMAP_BGRA;
struct sub_bitmaps *res = NULL;