diff options
author | Anders Bakken <anders.bakken@nokia.com> | 2009-12-16 18:01:22 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2010-01-04 08:50:21 (GMT) |
commit | c8ed3a4499adae2c26e66a1e00bffa28cc649b5a (patch) | |
tree | 4447e4376e3856a8608c11e0490673a26e64779c /src/plugins | |
parent | 6911786e2275b41284b19c88dc9692e78a01a647 (diff) | |
download | Qt-c8ed3a4499adae2c26e66a1e00bffa28cc649b5a.zip Qt-c8ed3a4499adae2c26e66a1e00bffa28cc649b5a.tar.gz Qt-c8ed3a4499adae2c26e66a1e00bffa28cc649b5a.tar.bz2 |
Release surface before getting a new one
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/graphicssystems/minimaldfb/qwindowsurface_minimaldfb.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/graphicssystems/minimaldfb/qwindowsurface_minimaldfb.cpp b/src/plugins/graphicssystems/minimaldfb/qwindowsurface_minimaldfb.cpp index 4d35376..4a055ac 100644 --- a/src/plugins/graphicssystems/minimaldfb/qwindowsurface_minimaldfb.cpp +++ b/src/plugins/graphicssystems/minimaldfb/qwindowsurface_minimaldfb.cpp @@ -100,6 +100,10 @@ void QDirectFbWindowSurface::setGeometry(const QRect &rect) QWindowSurface::setGeometry(rect); m_dfbWindow->SetBounds(m_dfbWindow, rect.x(),rect.y(), rect.width(), rect.height()); + if (m_dfbSurface) { + m_dfbSurface->Release(m_dfbSurface); + m_dfbSurface = 0; + } DFBResult result = m_dfbWindow->GetSurface(m_dfbWindow,&m_dfbSurface); if (result != DFB_OK) DirectFBError("QDirectFbWindowSurface::setGeometry() failed to retrieve new surface",result); |