summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>2011-04-14 07:05:53 (GMT)
committerLaszlo Agocs <laszlo.p.agocs@nokia.com>2011-04-14 07:05:53 (GMT)
commitd176e39de8fcde92a92866e7b0db5904c90a1e82 (patch)
treeab24baff6f771e90438ce0ab117500c3a020974a /src/gui/kernel
parentcc526edbff1cc413532f7ab1b6c088adae76744d (diff)
downloadQt-d176e39de8fcde92a92866e7b0db5904c90a1e82.zip
Qt-d176e39de8fcde92a92866e7b0db5904c90a1e82.tar.gz
Qt-d176e39de8fcde92a92866e7b0db5904c90a1e82.tar.bz2
Do not use SetSurfaceTransparency() on raster.
When raster graphics system is forced and the HW was capable enough, we still tried to use SetSurfaceTransparency() on the RWindow to enable semi-transparency, which is wrong as it only works for windows that have a separate surface. Reviewed-by: Jani Hautakangas
Diffstat (limited to 'src/gui/kernel')
-rw-r--r--src/gui/kernel/qapplication_s60.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_s60.cpp b/src/gui/kernel/qapplication_s60.cpp
index f73eb02..6e70fc2 100644
--- a/src/gui/kernel/qapplication_s60.cpp
+++ b/src/gui/kernel/qapplication_s60.cpp
@@ -1855,6 +1855,8 @@ void qt_init(QApplicationPrivate * /* priv */, int)
} else {
QApplicationPrivate::instance()->useTranslucentEGLSurfaces = false;
}
+ if (QApplicationPrivate::graphics_system_name == QLatin1String("raster"))
+ QApplicationPrivate::instance()->useTranslucentEGLSurfaces = false;
#else
QApplicationPrivate::instance()->useTranslucentEGLSurfaces = false;
#endif