summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtbase
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2014-03-05 09:09:00 +1100
committerMartin Jansa <Martin.Jansa@gmail.com>2014-03-05 19:25:24 +0100
commit8c3c6fda694f8d86347d51978d345d476addf59f (patch)
treef85b410eb0237ca6d9b7108300ce57c50a8066de /recipes-qt/qt5/qtbase
parentea5d8e0c1b04719e1606d823292d0beb1bae7cc2 (diff)
downloadmeta-qt5-8c3c6fda694f8d86347d51978d345d476addf59f.tar.gz
qtbase: fix mmsize argument parsing for linuxfb plugin
Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt/qt5/qtbase')
-rw-r--r--recipes-qt/qt5/qtbase/0015-Fix-linuxfb-argument-mmsize-parsing.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtbase/0015-Fix-linuxfb-argument-mmsize-parsing.patch b/recipes-qt/qt5/qtbase/0015-Fix-linuxfb-argument-mmsize-parsing.patch
new file mode 100644
index 00000000..a31301e3
--- /dev/null
+++ b/recipes-qt/qt5/qtbase/0015-Fix-linuxfb-argument-mmsize-parsing.patch
@@ -0,0 +1,42 @@
1From 99979159a404df09495c8ddd6a052837f66b8739 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Peter=20K=C3=BCmmel?= <syntheticpp@gmx.net>
3Date: Fri, 7 Feb 2014 13:12:37 +0100
4Subject: [PATCH] Fix linuxfb argument 'mmsize' parsing
5
6Parse first for 'mmsize' because the regex for 'size' also fits to 'mmsize'.
7
8Upstream-Status: Backport
9
10Task-number: QTBUG-29133
11Change-Id: Idc4950270818e496d5d94a97a172b7c780f069b1
12Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
13Signed-off-by: Jonathan Liu <net147@gmail.com>
14---
15 src/plugins/platforms/linuxfb/qlinuxfbscreen.cpp | 4 ++--
16 1 files changed, 2 insertions(+), 2 deletions(-)
17
18diff --git a/src/plugins/platforms/linuxfb/qlinuxfbscreen.cpp b/src/plugins/platforms/linuxfb/qlinuxfbscreen.cpp
19index 735a43d..33a9523 100644
20--- a/src/plugins/platforms/linuxfb/qlinuxfbscreen.cpp
21+++ b/src/plugins/platforms/linuxfb/qlinuxfbscreen.cpp
22@@ -333,6 +333,8 @@ bool QLinuxFbScreen::initialize()
23 foreach (const QString &arg, mArgs) {
24 if (arg == QLatin1String("nographicsmodeswitch"))
25 doSwitchToGraphicsMode = false;
26+ else if (mmSizeRx.indexIn(arg) != -1)
27+ userMmSize = QSize(mmSizeRx.cap(1).toInt(), mmSizeRx.cap(2).toInt());
28 else if (sizeRx.indexIn(arg) != -1)
29 userGeometry.setSize(QSize(sizeRx.cap(1).toInt(), sizeRx.cap(2).toInt()));
30 else if (offsetRx.indexIn(arg) != -1)
31@@ -341,8 +343,6 @@ bool QLinuxFbScreen::initialize()
32 ttyDevice = ttyRx.cap(1);
33 else if (fbRx.indexIn(arg) != -1)
34 fbDevice = fbRx.cap(1);
35- else if (mmSizeRx.indexIn(arg) != -1)
36- userMmSize = QSize(mmSizeRx.cap(1).toInt(), mmSizeRx.cap(2).toInt());
37 }
38
39 if (fbDevice.isEmpty()) {
40--
411.7.1
42