summaryrefslogtreecommitdiffstats
path: root/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-06-22 03:11:07 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-06-22 03:11:07 (GMT)
commit71703cea94f8ecfd540afa2890feee672572e225 (patch)
treea027f39acfee756869f9ec881e7cc6be8ec30998 /src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp
parent2010c0390b34c18d9cef8a793a37ea185571fc53 (diff)
downloadQt-71703cea94f8ecfd540afa2890feee672572e225.zip
Qt-71703cea94f8ecfd540afa2890feee672572e225.tar.gz
Qt-71703cea94f8ecfd540afa2890feee672572e225.tar.bz2
Make sure to update is_null in copy/transformed
Reviewed-by: TrustMe
Diffstat (limited to 'src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp
index 1c86466..9dc7818 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp
@@ -237,6 +237,7 @@ void QDirectFBPixmapData::copy(const QPixmapData *data, const QRect &rect)
w = rect.width();
h = rect.height();
d = otherData->d;
+ is_null = (w <= 0 || h <= 0);
DFBResult result = dfbSurface->Blit(dfbSurface, src, &blitRect, 0, 0);
#if (Q_DIRECTFB_VERSION >= 0x010000)
dfbSurface->ReleaseSource(dfbSurface);
@@ -330,6 +331,8 @@ QPixmap QDirectFBPixmapData::transformed(const QTransform &transform,
data->dfbSurface->StretchBlit(data->dfbSurface, dfbSurface, 0, &destRect);
data->w = size.width();
data->h = size.height();
+ data->is_null = (data->w <= 0 || data->h <= 0);
+
#if (Q_DIRECTFB_VERSION >= 0x010000)
data->dfbSurface->ReleaseSource(data->dfbSurface);
#endif