Commit fe3acfea authored by Benjamin Pracht's avatar Benjamin Pracht

* Really fix the color depth specification

parent f1e17110
......@@ -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 );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment