diff options
author | Daniel Giurcanu <gdanielgwork@googlemail.com> | 2013-12-17 12:30:02 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-12-18 20:29:07 +0100 |
commit | 1e44ff671e3e4f82f0835da6ec7558cfc2a7c4a6 (patch) | |
tree | bfbd26ed0f1afd5b397da39a51cc918777ad7480 /src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp | |
parent | c8d696eee7d26cb78a75f1476b7ac1b0c2c8f3c5 (diff) |
Fix [Linux]/[Linuxfb] screen initialization.
For the linuxfb platform the screen was registered
before its geometry was calculated resulting that
the qpa controller will deal with a screen instance
that has geometry of QRect(0,0,1,1) .
This masks pretty much all the painting and the input.
The fix is to call screen init before registering
the screen instance to the qpa controller.
Change-Id: If84daca6587dc368301b578cdbf7b2a65a56a5b5
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp')
-rw-r--r-- | src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp b/src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp index 977df8abd0..53f48d5480 100644 --- a/src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp +++ b/src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp @@ -57,7 +57,6 @@ QLinuxFbIntegration::QLinuxFbIntegration(const QStringList ¶mList) : m_fontDb(new QGenericUnixFontDatabase()) { m_primaryScreen = new QLinuxFbScreen(paramList); - screenAdded(m_primaryScreen); } QLinuxFbIntegration::~QLinuxFbIntegration() @@ -67,7 +66,9 @@ QLinuxFbIntegration::~QLinuxFbIntegration() void QLinuxFbIntegration::initialize() { - if (!m_primaryScreen->initialize()) + if (m_primaryScreen->initialize()) + screenAdded(m_primaryScreen); + else qWarning("linuxfb: Failed to initialize screen"); } |