summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-09-08 18:16:54 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-09-08 18:18:13 (GMT)
commit83335faff7f33808b8253fa64f5d59e0f5fe0836 (patch)
treee71d41c27135793fa6c2905ef94c462c8ef755cb /src/plugins
parenteeb31d201371c5e0a118d5d89616e0ed092c836b (diff)
downloadQt-83335faff7f33808b8253fa64f5d59e0f5fe0836.zip
Qt-83335faff7f33808b8253fa64f5d59e0f5fe0836.tar.gz
Qt-83335faff7f33808b8253fa64f5d59e0f5fe0836.tar.bz2
memset DFBWindowDescription to 0
This makes debugging easier. Reviewed-by: TrustMe
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp
index b1ffe69..82c2f81 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp
@@ -127,6 +127,8 @@ void QDirectFBWindowSurface::createWindow(const QRect &rect)
qFatal("QDirectFBWindowSurface: Unable to get primary display layer!");
DFBWindowDescription description;
+ memset(&description, 0, sizeof(DFBWindowDescription));
+
description.caps = DWCAPS_NODECORATION|DWCAPS_DOUBLEBUFFER;
description.flags = DWDESC_CAPS|DWDESC_SURFACE_CAPS|DWDESC_PIXELFORMAT|DWDESC_HEIGHT|DWDESC_WIDTH|DWDESC_POSX|DWDESC_POSY;