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

XCB/X11: fix grey scale (untested)

parent d8743005
...@@ -219,6 +219,7 @@ static int Open (vlc_object_t *obj) ...@@ -219,6 +219,7 @@ static int Open (vlc_object_t *obj)
/* Then try Static Gray class */ /* Then try Static Gray class */
if (fmt->depth != 8) if (fmt->depth != 8)
continue; continue;
vt = xcb_depth_visuals (d);
for (int i = xcb_depth_visuals_length (d); i > 0 && !vid; i--) for (int i = xcb_depth_visuals_length (d); i > 0 && !vid; i--)
{ {
if (vt->_class == XCB_VISUAL_CLASS_STATIC_GRAY) if (vt->_class == 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