# HG changeset patch # User cehoyos # Date 1328651805 0 # Node ID 26a20c12a5fcecc1e54baad372e99c6b2a70a06b # Parent b6191f9936ec6d62dd157620fe2fd5364a0c97b7 X11 non-native RGB/BGR "emulation" only works for 32bit. diff -r b6191f9936ec -r 26a20c12a5fc libvo/vo_x11.c --- 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;