summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-06-08 12:12:17 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-06-08 12:12:17 (GMT)
commit21fef75cd50b00609a803f123cc27ad0ee9ba509 (patch)
treeca96462e89b9c4828c7792e62def95e77d69d277 /src/gui/painting
parent11303c676166cda3aae33e7e97939e9d2942271f (diff)
parent61d1dcea0efa6b0809639b781bb49baf252b3aad (diff)
downloadQt-21fef75cd50b00609a803f123cc27ad0ee9ba509.zip
Qt-21fef75cd50b00609a803f123cc27ad0ee9ba509.tar.gz
Qt-21fef75cd50b00609a803f123cc27ad0ee9ba509.tar.bz2
Merge commit 'origin/4.5'
Conflicts: src/3rdparty/phonon/qt7/mediaobject.mm src/3rdparty/phonon/qt7/quicktimevideoplayer.mm src/gui/text/qfontengine_win.cpp tools/linguist/shared/cpp.cpp
Diffstat (limited to 'src/gui/painting')
-rw-r--r--src/gui/painting/qwindowsurface_raster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qwindowsurface_raster.cpp b/src/gui/painting/qwindowsurface_raster.cpp
index 3e7b015..6d0d155 100644
--- a/src/gui/painting/qwindowsurface_raster.cpp
+++ b/src/gui/painting/qwindowsurface_raster.cpp
@@ -229,7 +229,7 @@ void QRasterWindowSurface::flush(QWidget *widget, const QRegion &rgn, const QPoi
{
const QImage &src = d->image->image;
br = br.intersected(src.rect());
- if (src.format() != QImage::Format_RGB32) {
+ if (src.format() != QImage::Format_RGB32 || widget->x11Info().depth() < 24) {
QX11PixmapData *data = new QX11PixmapData(QPixmapData::PixmapType);
data->xinfo = widget->x11Info();
data->fromImage(src, Qt::AutoColor);