From 44c62a685222f2b018a480246c2946d3e3e7529c Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 5 Oct 2012 20:37:16 +0200 Subject: sub: switch to premultiplied alpha Fixes problems with ugly borders. Note that at least in the DVD sub case, we could have just set all transparent pixels to black to solve this. vo_direct3d.c change untested, because mingw is a miserable pile of crap. --- sub/sub.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sub/sub.h') diff --git a/sub/sub.h b/sub/sub.h index 8649018029..649f196414 100644 --- a/sub/sub.h +++ b/sub/sub.h @@ -30,7 +30,7 @@ struct sub_render_params; enum sub_bitmap_format { SUBBITMAP_EMPTY = 0,// no bitmaps; always has num_parts==0 SUBBITMAP_LIBASS, // A8, with a per-surface blend color (libass.color) - SUBBITMAP_RGBA, // B8G8R8A8 (MSB=A, LSB=B), can be scaled + SUBBITMAP_RGBA, // B8G8R8A8 (MSB=A, LSB=B), scaled, premultiplied alpha SUBBITMAP_INDEXED, // scaled, bitmap points to osd_bmp_indexed SUBBITMAP_OLD_PLANAR, // like previous, but bitmap points to old_osd_planar -- cgit v1.2.3