From 545ef2e21d74128733f3b9b117d7c6024826cbb5 Mon Sep 17 00:00:00 2001 From: Paul Olav Tvete Date: Tue, 29 Nov 2016 10:44:40 +0100 Subject: Make qwindow-compositor look different than pure-qml Change-Id: I8aac99dd98be943909f5a6dc254a4f79e83e61d9 Reviewed-by: Johan Helsing --- examples/wayland/qwindow-compositor/window.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/wayland/qwindow-compositor/window.cpp b/examples/wayland/qwindow-compositor/window.cpp index a61e4d98a..59ef1d56a 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(); -- cgit v1.2.3