Mercurial > mplayer.hg
changeset 34570:26a20c12a5fc
X11 non-native RGB/BGR "emulation" only works for 32bit.
author | cehoyos |
---|---|
date | Tue, 07 Feb 2012 21:56:45 +0000 |
parents | b6191f9936ec |
children | 463e0da69743 |
files | libvo/vo_x11.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_x11.c Tue Feb 07 14:52:23 2012 +0000 +++ b/libvo/vo_x11.c Tue Feb 07 21:56:45 2012 +0000 @@ -425,9 +425,8 @@ draw_alpha_fnc = draw_alpha_null; } out_offset = 0; - // for these formats conversion is currently not support and - // we can easily "emulate" them. - if (out_format & 64 && (IMGFMT_IS_RGB(out_format) || IMGFMT_IS_BGR(out_format))) { + // We can easily "emulate" non-native RGB32 and BGR32 + if (out_format == (IMGFMT_BGR32 | 64) || out_format == (IMGFMT_RGB32 | 64)) { out_format &= ~64; #if HAVE_BIGENDIAN out_offset = 1;