diff options
author | Anders Bakken <anders.bakken@nokia.com> | 2009-04-08 23:07:04 (GMT) |
---|---|---|
committer | Anders Bakken <anders.bakken@nokia.com> | 2009-04-08 23:07:04 (GMT) |
commit | 2cf88ffef18622b5c08cd48d4cb0b5624c59a713 (patch) | |
tree | 711340cc17338b629494157887976bf3f7a9ee2f /src/plugins/gfxdrivers | |
parent | d554a4b6218885e683c98b7c538fb5feee618067 (diff) | |
download | Qt-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')
-rw-r--r-- | src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp | 10 |
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) |