summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglfs
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@nokia.com>2010-09-06 08:27:34 (GMT)
committerPaul Olav Tvete <paul.tvete@nokia.com>2010-09-06 08:27:34 (GMT)
commitcbbca7d2e30e7bb5411b9c7d89feaf6eae54af7e (patch)
treedfe34381f092c21d74f21c7ee5421c8776b85381 /src/plugins/platforms/eglfs
parentc8ae543a3b649778d8f6e1b2d45faf3a4b1d4012 (diff)
downloadQt-cbbca7d2e30e7bb5411b9c7d89feaf6eae54af7e.zip
Qt-cbbca7d2e30e7bb5411b9c7d89feaf6eae54af7e.tar.gz
Qt-cbbca7d2e30e7bb5411b9c7d89feaf6eae54af7e.tar.bz2
Switch to 32 bits per pixel
Diffstat (limited to 'src/plugins/platforms/eglfs')
-rw-r--r--src/plugins/platforms/eglfs/qeglfsscreen.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfsscreen.cpp b/src/plugins/platforms/eglfs/qeglfsscreen.cpp
index 0d72862..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,11 +116,11 @@ 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(5);
- platformFormat.setGreenBufferSize(6);
- platformFormat.setBlueBufferSize(5);
+ platformFormat.setRedBufferSize(8);
+ platformFormat.setGreenBufferSize(8);
+ platformFormat.setBlueBufferSize(8);
EGLConfig config = q_configFromQPlatformWindowFormat(m_dpy, platformFormat);
EGLNativeWindowType eglWindow = 0;