summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAnders Bakken <agbakken@gmail.com>2011-02-17 17:37:15 (GMT)
committerMarcel Schuette <marcel.schuette@nokia.com>2011-02-17 17:37:15 (GMT)
commita6e1a7caeb7f03d1c102c250df8e602d5e40ab62 (patch)
tree585f467d217c51ceb6992484091f951ea66113f8 /src
parent63bfd78b6a80f608f9b09254d815b6da04f8e2fc (diff)
downloadQt-a6e1a7caeb7f03d1c102c250df8e602d5e40ab62.zip
Qt-a6e1a7caeb7f03d1c102c250df8e602d5e40ab62.tar.gz
Qt-a6e1a7caeb7f03d1c102c250df8e602d5e40ab62.tar.bz2
Make Qt/DirectFB less verbose about failing to load pixmaps.
Qt/DirectFB is way too verbose about not being able to use DirectFB for loading images. A lot of times DirectFB doesn't have support for e.g. pngs or gifs and currently one gets a message for every failed pixmap load, even if they will succeed when falling back to Qt. Merge-request: 2552 Reviewed-by: Marcel Schuette <marcel.schuette@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp
index 50e0f5f..eaff74a 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp
@@ -245,10 +245,9 @@ bool QDirectFBPixmapData::fromDataBufferDescription(const DFBDataBufferDescripti
QDirectFBPointer<IDirectFBDataBuffer> dataBuffer(dataBufferPtr);
IDirectFBImageProvider *providerPtr;
- if ((result = dataBuffer->CreateImageProvider(dataBuffer.data(), &providerPtr)) != DFB_OK) {
- DirectFBError("QDirectFBPixmapData::fromDataBufferDescription(): Can't create image provider", result);
+ if ((result = dataBuffer->CreateImageProvider(dataBuffer.data(), &providerPtr)) != DFB_OK)
return false;
- }
+
QDirectFBPointer<IDirectFBImageProvider> provider(providerPtr);
DFBImageDescription imageDescription;