Commit 6e49f4ad authored by Benjamin Pracht's avatar Benjamin Pracht

* Backport of 15525

parent a1a21e04
...@@ -2072,12 +2072,12 @@ static int InitDisplay( vout_thread_t *p_vout ) ...@@ -2072,12 +2072,12 @@ static int InitDisplay( vout_thread_t *p_vout )
xvisual_template.depth = p_vout->p_sys->i_screen_depth; xvisual_template.depth = p_vout->p_sys->i_screen_depth;
p_xvisual = XGetVisualInfo( p_vout->p_sys->p_display, p_xvisual = XGetVisualInfo( p_vout->p_sys->p_display,
VisualScreenMask | VisualClassMask, VisualScreenMask | VisualClassMask |
VisualDepthMask,
&xvisual_template, &i_count ); &xvisual_template, &i_count );
if( p_xvisual == NULL ) if( p_xvisual == NULL )
{ {
msg_Warn( p_vout, "No screen matching the required color depth" ); msg_Warn( p_vout, "No screen matching the required color depth" );
xvisual_template.depth = 0;
p_xvisual = XGetVisualInfo( p_vout->p_sys->p_display, p_xvisual = XGetVisualInfo( p_vout->p_sys->p_display,
VisualScreenMask | VisualClassMask, VisualScreenMask | VisualClassMask,
&xvisual_template, &i_count ); &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