diff options
author | Jonathan Liu <net147@gmail.com> | 2014-03-05 09:09:00 +1100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-03-05 19:25:24 +0100 |
commit | 8c3c6fda694f8d86347d51978d345d476addf59f (patch) | |
tree | f85b410eb0237ca6d9b7108300ce57c50a8066de /recipes-qt/qt5/qtbase | |
parent | ea5d8e0c1b04719e1606d823292d0beb1bae7cc2 (diff) | |
download | meta-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.patch | 42 |
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 @@ | |||
1 | From 99979159a404df09495c8ddd6a052837f66b8739 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Peter=20K=C3=BCmmel?= <syntheticpp@gmx.net> | ||
3 | Date: Fri, 7 Feb 2014 13:12:37 +0100 | ||
4 | Subject: [PATCH] Fix linuxfb argument 'mmsize' parsing | ||
5 | |||
6 | Parse first for 'mmsize' because the regex for 'size' also fits to 'mmsize'. | ||
7 | |||
8 | Upstream-Status: Backport | ||
9 | |||
10 | Task-number: QTBUG-29133 | ||
11 | Change-Id: Idc4950270818e496d5d94a97a172b7c780f069b1 | ||
12 | Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com> | ||
13 | Signed-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 | |||
18 | diff --git a/src/plugins/platforms/linuxfb/qlinuxfbscreen.cpp b/src/plugins/platforms/linuxfb/qlinuxfbscreen.cpp | ||
19 | index 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 | -- | ||
41 | 1.7.1 | ||
42 | |||