Commit 2b9b5c0c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XCB: do not look for static color visuals

We really don't support them anyway
parent 7ffb2aee
...@@ -154,10 +154,12 @@ static int Open (vlc_object_t *obj) ...@@ -154,10 +154,12 @@ static int Open (vlc_object_t *obj)
if ((vt = xcb_aux_find_visual_by_attrs (scr, XCB_VISUAL_CLASS_TRUE_COLOR, if ((vt = xcb_aux_find_visual_by_attrs (scr, XCB_VISUAL_CLASS_TRUE_COLOR,
scr->root_depth)) != NULL) scr->root_depth)) != NULL)
msg_Dbg (vout, "using TrueColor visual ID %d", (int)vt->visual_id); msg_Dbg (vout, "using TrueColor visual ID %d", (int)vt->visual_id);
#if 0
else else
if ((vt = xcb_aux_find_visual_by_attrs (scr, XCB_VISUAL_CLASS_STATIC_COLOR, if ((vt = xcb_aux_find_visual_by_attrs (scr, XCB_VISUAL_CLASS_STATIC_COLOR,
scr->root_depth)) != NULL) scr->root_depth)) != NULL)
msg_Dbg (vout, "using static color visual ID %d", (int)vt->visual_id); msg_Dbg (vout, "using static color visual ID %d", (int)vt->visual_id);
#endif
else else
if ((scr->root_depth == 8) if ((scr->root_depth == 8)
&& (vt = xcb_aux_find_visual_by_attrs (scr, XCB_VISUAL_CLASS_STATIC_GRAY, && (vt = xcb_aux_find_visual_by_attrs (scr, XCB_VISUAL_CLASS_STATIC_GRAY,
......
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