summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2017-04-12 20:08:56 +0200
committerLiang Qi <liang.qi@qt.io>2017-04-12 20:08:56 +0200
commit94c576cf6607d3e9880fdaf6c8a51216bf2d2147 (patch)
tree32e42bdb8bcb869c894023f9494c2e2df310d585 /src/gui
parent2ad7f6ddf5042d7442c97a89b083ca2853cf5721 (diff)
parente893e657e5c976f96e7e627ca90531934129bf4b (diff)
Merge remote-tracking branch 'origin/5.8' into 5.9
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/configure.json26
-rw-r--r--src/gui/kernel/qopenglwindow.cpp4
2 files changed, 17 insertions, 13 deletions
diff --git a/src/gui/configure.json b/src/gui/configure.json
index fdbb6a4620..48579b309a 100644
--- a/src/gui/configure.json
+++ b/src/gui/configure.json
@@ -234,7 +234,7 @@
]
},
"xcb_syslibs": {
- "label": "XCB (secondary)",
+ "label": "XCB (extensions)",
"test": "qpa/xcb-syslibs",
"sources": [
{ "type": "pkgConfig",
@@ -723,11 +723,11 @@
"output": [ "privateFeature" ]
},
"system-xcb": {
- "label": "Using system provided XCB libraries",
- "enable": "input.xcb == 'system' || input.xcb == 'yes'",
- "disable": "input.xcb == 'qt' || input.xcb == 'no'",
+ "label": "Using system-provided XCB libraries",
+ "enable": "input.xcb == 'system'",
+ "disable": "input.xcb == 'qt'",
"autoDetect": "!config.darwin",
- "condition": "libs.xcb && libs.xcb_syslibs",
+ "condition": "features.xcb && libs.xcb_syslibs",
"output": [ "privateFeature" ]
},
"x11-prefix": {
@@ -743,8 +743,14 @@
},
"xcb-render": {
"label": "XCB render",
- "emitIf": "features.system-xcb",
- "condition": "libs.xcb_render",
+ "emitIf": "features.xcb",
+ "condition": "!features.system-xcb || libs.xcb_render",
+ "output": [ "privateFeature" ]
+ },
+ "xkb": {
+ "label": "XCB XKB",
+ "emitIf": "features.xcb",
+ "condition": "!features.system-xcb || libs.xcb_xkb",
"output": [ "privateFeature" ]
},
"xcb-xlib": {
@@ -761,6 +767,7 @@
},
"xinput2": {
"label": "Xinput2",
+ "emitIf": "features.xcb",
"condition": "libs.xinput2",
"output": [ "privateFeature" ]
},
@@ -777,11 +784,6 @@
"condition": "libs.xkbcommon_x11",
"output": [ "privateFeature" ]
},
- "xkb": {
- "label": "XCB XKB",
- "condition": "features.system-xcb && libs.xcb_xkb",
- "output": [ "privateFeature" ]
- },
"xkb-config-root": {
"label": "XKB config root",
"emitIf": "features.xcb",
diff --git a/src/gui/kernel/qopenglwindow.cpp b/src/gui/kernel/qopenglwindow.cpp
index e1bd3d11b2..5170c7ab63 100644
--- a/src/gui/kernel/qopenglwindow.cpp
+++ b/src/gui/kernel/qopenglwindow.cpp
@@ -528,7 +528,9 @@ QImage QOpenGLWindow::grabFramebuffer()
return QImage();
makeCurrent();
- return qt_gl_read_framebuffer(size() * devicePixelRatio(), false, false);
+ QImage img = qt_gl_read_framebuffer(size() * devicePixelRatio(), false, false);
+ img.setDevicePixelRatio(devicePixelRatio());
+ return img;
}
/*!