summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms')
-rw-r--r--src/plugins/platforms/eglfs/qeglfsscreen.cpp6
-rw-r--r--src/plugins/platforms/vnc/vnc.pro2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfsscreen.cpp b/src/plugins/platforms/eglfs/qeglfsscreen.cpp
index a390106..1b64e7e 100644
--- a/src/plugins/platforms/eglfs/qeglfsscreen.cpp
+++ b/src/plugins/platforms/eglfs/qeglfsscreen.cpp
@@ -50,6 +50,8 @@
QT_BEGIN_NAMESPACE
+//#define QEGL_EXTRA_DEBUG
+
#ifdef QEGL_EXTRA_DEBUG
struct AttrInfo { EGLint attr; const char *name; };
static struct AttrInfo attrs[] = {
@@ -84,7 +86,7 @@ static struct AttrInfo attrs[] = {
#endif //QEGL_EXTRA_DEBUG
QEglFSScreen::QEglFSScreen(EGLNativeDisplayType display)
- : m_depth(16), m_format(QImage::Format_RGB16), m_platformContext(0)
+ : m_depth(32), m_format(QImage::Format_ARGB32_Premultiplied), m_platformContext(0)
{
#ifdef QEGL_EXTRA_DEBUG
qWarning("QEglScreen %p\n", this);
@@ -114,7 +116,7 @@ QEglFSScreen::QEglFSScreen(EGLNativeDisplayType display)
qWarning("Initialized display %d %d\n", major, minor);
QPlatformWindowFormat platformFormat;
- platformFormat.setDepth(16);
+ platformFormat.setDepth(32);
platformFormat.setWindowApi(QPlatformWindowFormat::OpenGL);
platformFormat.setRedBufferSize(8);
platformFormat.setGreenBufferSize(8);
diff --git a/src/plugins/platforms/vnc/vnc.pro b/src/plugins/platforms/vnc/vnc.pro
index 6c448f5..07f8d88 100644
--- a/src/plugins/platforms/vnc/vnc.pro
+++ b/src/plugins/platforms/vnc/vnc.pro
@@ -1,6 +1,8 @@
TARGET = qvncgraphicssystem
include(../../qpluginbase.pri)
+QT += network
+
QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/platforms
SOURCES = main.cpp qvncintegration.cpp