summaryrefslogtreecommitdiffstats
path: root/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-04-08 23:07:04 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-04-08 23:07:04 (GMT)
commit2cf88ffef18622b5c08cd48d4cb0b5624c59a713 (patch)
tree711340cc17338b629494157887976bf3f7a9ee2f /src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp
parentd554a4b6218885e683c98b7c538fb5feee618067 (diff)
downloadQt-2cf88ffef18622b5c08cd48d4cb0b5624c59a713.zip
Qt-2cf88ffef18622b5c08cd48d4cb0b5624c59a713.tar.gz
Qt-2cf88ffef18622b5c08cd48d4cb0b5624c59a713.tar.bz2
Diagnostic info when failing to create surface
Only enabled in debug builds since it could something that should be ignored. Reviewed-by: Donald <qt-info@nokia.com>
Diffstat (limited to 'src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp
index bf9864a..04d2f57 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp
@@ -233,6 +233,16 @@ IDirectFBSurface* QDirectFBScreen::createDFBSurface(const DFBSurfaceDescription
voDesc.caps = DFBSurfaceCapabilities(voDesc.caps | DSCAPS_VIDEOONLY);
}
result = d_ptr->dfb->CreateSurface(d_ptr->dfb, &voDesc, &newSurface);
+#ifndef QT_NO_DEBUG
+ if (result != DFB_OK) {
+ qWarning("QDirectFBScreen::createDFBSurface() Failed to create surface in video memory!\n"
+ " Flags %0x Caps %0x width %d height %d pixelformat %0x %d preallocated %p %d\n%s",
+ desc->flags, desc->caps, desc->width, desc->height,
+ desc->pixelformat, DFB_PIXELFORMAT_INDEX(desc->pixelformat),
+ desc->preallocated[0].data, desc->preallocated[0].pitch,
+ DirectFBErrorString(result));
+ }
+#endif
}
if (!newSurface)