changeset 5416:310b06d372d0

check depth for direct rendering
author arpi
date Sun, 31 Mar 2002 09:28:17 +0000
parents e9b15870e82f
children a890a999ca9a
files libvo/vo_x11.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_x11.c	Sun Mar 31 03:32:42 2002 +0000
+++ b/libvo/vo_x11.c	Sun Mar 31 09:28:17 2002 +0000
@@ -538,6 +538,7 @@
 {
     if (zoomFlag ||
 	!IMGFMT_IS_BGR(mpi->imgfmt) ||
+	(IMGFMT_BGR_DEPTH(mpi->imgfmt) != vo_depthonscreen) ||
 	((mpi->type != MP_IMGTYPE_STATIC) && (mpi->type != MP_IMGTYPE_TEMP)) ||
 	(mpi->flags & MP_IMGFLAG_PLANAR) ||
 	(mpi->flags & MP_IMGFLAG_YUV) ||