summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-05-06 23:43:52 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-05-06 23:44:22 (GMT)
commita83d4edbb27ca5394e97de6387f9bdc1fc0d98ae (patch)
tree54c87e2117240d3c02fda35cbbd6b1696a827700 /src
parent311978919f63c2c23dd09b4743ff12cf2a8a47bb (diff)
downloadQt-a83d4edbb27ca5394e97de6387f9bdc1fc0d98ae.zip
Qt-a83d4edbb27ca5394e97de6387f9bdc1fc0d98ae.tar.gz
Qt-a83d4edbb27ca5394e97de6387f9bdc1fc0d98ae.tar.bz2
Use proper ways to create "window" surface
Reviewed-by: TrustMe
Diffstat (limited to 'src')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp
index f1e3c84..8c64293 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp
@@ -178,15 +178,7 @@ void QDirectFBWindowSurface::setGeometry(const QRect &rect, const QRegion &mask)
"Unable to get DirectFB handle!");
}
- DFBSurfaceDescription description;
- description.flags = DFBSurfaceDescriptionFlags(DSDESC_WIDTH |
- DSDESC_HEIGHT |
- DSDESC_PIXELFORMAT);
- description.width = rect.width();
- description.height = rect.height();
- QDirectFBScreen::initSurfaceDescriptionPixelFormat(&description,
- screen->pixelFormat());
- dfbSurface = screen->createDFBSurface(description, false);
+ dfbSurface = screen->createDFBSurface(rect.size(), screen->pixelFormat(), QDirectFBScreen::DontTrackSurface);
forceRaster = (dfbSurface && QDirectFBScreen::getImageFormat(dfbSurface) == QImage::Format_RGB32);
} else {
Q_ASSERT(dfbSurface);