diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-09-28 14:10:10 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-10-07 09:04:38 +0000 |
commit | 06089a19e52126bb83016d6a360aaf32c53bed49 (patch) | |
tree | e6058ddc96b75ce9f6cf7f8131fe203cf3819a87 /src/plugins/platforms/xcb/qxcbconnection.cpp | |
parent | 23d0c77ce86927963ea2b0a31564cfd5189a7539 (diff) |
xcb: Unify visual to QImage::Format logic
Make a common function to replace the two existing ones that convert
from XCB visuals to QImage format.
Change-Id: I2ae08ef4df96df950910a45e71c9d9cd98375b2e
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbconnection.cpp')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbconnection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/platforms/xcb/qxcbconnection.cpp b/src/plugins/platforms/xcb/qxcbconnection.cpp index d53a961b85..de11ecfb6e 100644 --- a/src/plugins/platforms/xcb/qxcbconnection.cpp +++ b/src/plugins/platforms/xcb/qxcbconnection.cpp @@ -2070,7 +2070,8 @@ const xcb_format_t *QXcbConnection::formatForDepth(uint8_t depth) const xcb_format_next(&iterator); } - return 0; + qWarning() << "XCB failed to find an xcb_format_t for depth:" << depth; + return nullptr; } void QXcbConnection::sync() |