diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2011-03-01 13:01:43 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2011-03-01 13:29:02 (GMT) |
commit | 53741ff1983a9d0085658b96743b125daaa5e680 (patch) | |
tree | 4140ea453c84c0436f8f1ba50a6cbebc556a01a9 /src/plugins/platforms/xcb/qxcbconnection.cpp | |
parent | ccb623188369be7bf4b991ff8a1f81d27137984c (diff) | |
download | Qt-53741ff1983a9d0085658b96743b125daaa5e680.zip Qt-53741ff1983a9d0085658b96743b125daaa5e680.tar.gz Qt-53741ff1983a9d0085658b96743b125daaa5e680.tar.bz2 |
Lighthouse: Implement the new Native Interface api in the xcb plugin
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbconnection.cpp')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbconnection.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/platforms/xcb/qxcbconnection.cpp b/src/plugins/platforms/xcb/qxcbconnection.cpp index 06e4d13..a2f985e 100644 --- a/src/plugins/platforms/xcb/qxcbconnection.cpp +++ b/src/plugins/platforms/xcb/qxcbconnection.cpp @@ -447,13 +447,14 @@ void QXcbConnection::initializeDri2() return; } - QString dri2DeviceName = QString::fromLocal8Bit(xcb_dri2_connect_device_name (connect), + m_dri2_device_name = QByteArray(xcb_dri2_connect_device_name (connect), xcb_dri2_connect_device_name_length (connect)); delete connect; - int fd = open(qPrintable(dri2DeviceName), O_RDWR); + int fd = open(m_dri2_device_name.constData(), O_RDWR); if (fd < 0) { qDebug() << "InitializeDri2: Could'nt open device << dri2DeviceName"; + m_dri2_device_name = QByteArray(); return; } |