summaryrefslogtreecommitdiffstats
path: root/source/x11-helper.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-08-07 13:26:28 +0200
committerDave Davenport <qball@gmpclient.org>2016-08-07 13:26:28 +0200
commit026a8cbb34a74e8d454ae87b5136abcecb39832f (patch)
treea9f989ec46a4cb77d46d94287c96a201fff25fcf /source/x11-helper.c
parent6495d8e8dffe82fd516ad7ff1e255bdbd541cec5 (diff)
Fix #438 look for a 8 bpc 32bit visual, fixes 10bpc 30bit screen
Diffstat (limited to 'source/x11-helper.c')
-rw-r--r--source/x11-helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/x11-helper.c b/source/x11-helper.c
index 13cc8d50..689cd753 100644
--- a/source/x11-helper.c
+++ b/source/x11-helper.c
@@ -617,7 +617,7 @@ void x11_create_visual_and_colormap ( void )
xcb_visualtype_iterator_t visual_iter;
for ( visual_iter = xcb_depth_visuals_iterator ( d ); visual_iter.rem; xcb_visualtype_next ( &visual_iter ) ) {
xcb_visualtype_t *v = visual_iter.data;
- if ( ( d->depth == 32 ) && ( v->_class == XCB_VISUAL_CLASS_TRUE_COLOR ) ) {
+ if ( (v->bits_per_rgb_value == 8) && ( d->depth == 32 ) && ( v->_class == XCB_VISUAL_CLASS_TRUE_COLOR ) ) {
depth = d;
visual = v;
}