diff options
Diffstat (limited to 'video/out/vo_xv.c')
-rw-r--r-- | video/out/vo_xv.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/video/out/vo_xv.c b/video/out/vo_xv.c index ea4fa5a015..90cc112ad2 100644 --- a/video/out/vo_xv.c +++ b/video/out/vo_xv.c @@ -157,7 +157,6 @@ static int config(struct vo *vo, uint32_t width, uint32_t height, XSetWindowAttributes xswa; XWindowAttributes attribs; unsigned long xswamask; - int depth; struct xvctx *ctx = vo->priv; int i; @@ -200,10 +199,8 @@ static int config(struct vo *vo, uint32_t width, uint32_t height, #endif XGetWindowAttributes(x11->display, DefaultRootWindow(x11->display), &attribs); - depth = attribs.depth; - if (depth != 15 && depth != 16 && depth != 24 && depth != 32) - depth = 24; - XMatchVisualInfo(x11->display, x11->screen, depth, TrueColor, &vinfo); + XMatchVisualInfo(x11->display, x11->screen, attribs.depth, TrueColor, + &vinfo); xswa.border_pixel = 0; xswamask = CWBorderPixel; |