From 785edaa09d6e57aa8ab02a87ab00d9347818c615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20R=C3=B8dal?= Date: Wed, 20 Feb 2013 08:17:35 +0100 Subject: Made EGLFS handle multiple surfaces with more grace. Prevents crashing when some menu or similar is shown, although the visual result might not be ideal. Task-number: QTBUG-29729 Change-Id: Ia840b3ec17f5ef30ee58150bd2f807ca5e72cc12 Reviewed-by: Gunnar Sletta Reviewed-by: Andy Nichols --- src/plugins/platforms/eglfs/qeglfsscreen.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/plugins/platforms/eglfs/qeglfsscreen.cpp') diff --git a/src/plugins/platforms/eglfs/qeglfsscreen.cpp b/src/plugins/platforms/eglfs/qeglfsscreen.cpp index 6cb1f88c66..1fe8bcc11b 100644 --- a/src/plugins/platforms/eglfs/qeglfsscreen.cpp +++ b/src/plugins/platforms/eglfs/qeglfsscreen.cpp @@ -48,6 +48,7 @@ QT_BEGIN_NAMESPACE QEglFSScreen::QEglFSScreen(EGLDisplay dpy) : m_dpy(dpy) + , m_surface(0) , m_cursor(0) { #ifdef QEGL_EXTRA_DEBUG @@ -95,4 +96,9 @@ QPlatformCursor *QEglFSScreen::cursor() const return m_cursor; } +void QEglFSScreen::setPrimarySurface(EGLSurface surface) +{ + m_surface = surface; +} + QT_END_NAMESPACE -- cgit v1.2.3