summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAnders Bakken <anders@trolltech.com>2009-03-23 22:01:05 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2009-03-25 15:57:18 (GMT)
commitb99287bef5bf8c71ef5b0aeb7de85a069b222443 (patch)
treeb616f945b4933577aaf9936cce65eb37b0f0ff1b /src/plugins
parent8a56f39c1ee4e04975eeac4e11368cece91e38b5 (diff)
downloadQt-b99287bef5bf8c71ef5b0aeb7de85a069b222443.zip
Qt-b99287bef5bf8c71ef5b0aeb7de85a069b222443.tar.gz
Qt-b99287bef5bf8c71ef5b0aeb7de85a069b222443.tar.bz2
Minor code cleanup
Improve readability of code. Reviewed-by: Tom Cooksey
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbsurface.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbsurface.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbsurface.cpp
index ab1d0f1..7d5ad10 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbsurface.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbsurface.cpp
@@ -126,14 +126,15 @@ void QDirectFBSurface::setGeometry(const QRect &rect, const QRegion &mask)
// If we're in a resize, the surface shouldn't be locked
Q_ASSERT( (lockedImage == 0) || (isResize == false));
- IDirectFBSurface *s = screen->dfbSurface();
- if (onscreen && s) {
+ if (onscreen) {
if (dfbSurface)
dfbSurface->Release(dfbSurface);
DFBRectangle r = { rect.x(), rect.y(),
rect.width(), rect.height() };
- result = s->GetSubSurface(s, &r, &dfbSurface);
+ IDirectFBSurface *primarySurface = screen->dfbSurface();
+ Q_ASSERT(primarySurface);
+ result = primarySurface->GetSubSurface(primarySurface, &r, &dfbSurface);
} else {
#ifdef QT_NO_DIRECTFB_WM
if (isResize) {