diff options
author | Paul Olav Tvete <paul.tvete@qt.io> | 2016-11-29 10:44:40 +0100 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@qt.io> | 2016-11-29 10:47:14 +0000 |
commit | 545ef2e21d74128733f3b9b117d7c6024826cbb5 (patch) | |
tree | 1f16dc8fabfd715a6ca43dc93619c11447eed04a | |
parent | ec059c9222f229d516ede0018f07a264366dae48 (diff) | |
download | qtwayland-545ef2e21d74128733f3b9b117d7c6024826cbb5.tar.gz |
Make qwindow-compositor look different than pure-qml
Change-Id: I8aac99dd98be943909f5a6dc254a4f79e83e61d9
Reviewed-by: Johan Helsing <johan.helsing@qt.io>
-rw-r--r-- | examples/wayland/qwindow-compositor/window.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/wayland/qwindow-compositor/window.cpp b/examples/wayland/qwindow-compositor/window.cpp index a61e4d98..59ef1d56 100644 --- a/examples/wayland/qwindow-compositor/window.cpp +++ b/examples/wayland/qwindow-compositor/window.cpp @@ -66,7 +66,8 @@ void Window::setCompositor(Compositor *comp) { void Window::initializeGL() { - QImage backgroundImage = QImage(QLatin1String(":/background.jpg")); + QImage backgroundImage = QImage(QLatin1String(":/background.jpg")).rgbSwapped(); + backgroundImage.invertPixels(); m_backgroundTexture = new QOpenGLTexture(backgroundImage, QOpenGLTexture::DontGenerateMipMaps); m_backgroundTexture->setMinificationFilter(QOpenGLTexture::Nearest); m_backgroundImageSize = backgroundImage.size(); |