]> git.sesse.net Git - vlc/commitdiff
* Really fix the color depth specification
authorBenjamin Pracht <bigben@videolan.org>
Tue, 2 May 2006 19:20:28 +0000 (19:20 +0000)
committerBenjamin Pracht <bigben@videolan.org>
Tue, 2 May 2006 19:20:28 +0000 (19:20 +0000)
modules/video_output/x11/xcommon.c

index 81781bb0f13a2d9b59ac9a1c3ccf131d6bf2f052..0ac793fdd0d1cd1fff17fc61c64d6f335227e077 100644 (file)
@@ -2072,12 +2072,12 @@ static int InitDisplay( vout_thread_t *p_vout )
         xvisual_template.depth =    p_vout->p_sys->i_screen_depth;
 
         p_xvisual = XGetVisualInfo( p_vout->p_sys->p_display,
-                                    VisualScreenMask | VisualClassMask,
+                                    VisualScreenMask | VisualClassMask |
+                                    VisualDepthMask,
                                     &xvisual_template, &i_count );
         if( p_xvisual == NULL )
         {
             msg_Warn( p_vout, "No screen matching the required color depth" );
-            xvisual_template.depth = 0;
             p_xvisual = XGetVisualInfo( p_vout->p_sys->p_display,
                                     VisualScreenMask | VisualClassMask,
                                     &xvisual_template, &i_count );