diff options
author | Thomas McGuire <thomas.mcguire.qnx@kdab.com> | 2012-07-11 16:36:47 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-13 09:55:18 +0200 |
commit | 11dc9ca32426cb6879022b588c5aacf3f63c0366 (patch) | |
tree | 6c520acbb075ca3b4afa2c2fc573a10f17e30d7b /src/plugins/platforms/qnx/qqnxrasterbackingstore.cpp | |
parent | 095f2d5292ddfb4c77056af89c11327d85af282b (diff) |
QNX: Extract and move adjustBufferSize() function
Change-Id: Ia1719314460b9c51d6eba04ab1c43f02be1777b6
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxrasterbackingstore.cpp')
-rw-r--r-- | src/plugins/platforms/qnx/qqnxrasterbackingstore.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/plugins/platforms/qnx/qqnxrasterbackingstore.cpp b/src/plugins/platforms/qnx/qqnxrasterbackingstore.cpp index ad8c50b63b..70af4b3579 100644 --- a/src/plugins/platforms/qnx/qqnxrasterbackingstore.cpp +++ b/src/plugins/platforms/qnx/qqnxrasterbackingstore.cpp @@ -142,11 +142,7 @@ void QQnxRasterBackingStore::beginPaint(const QRegion ®ion) qRasterBackingStoreDebug() << Q_FUNC_INFO << "w =" << window(); - // resize window buffers if surface resized - QSize s = window()->size(); - if (s != m_platformWindow->bufferSize()) { - m_platformWindow->setBufferSize(s); - } + m_platformWindow->adjustBufferSize(); } void QQnxRasterBackingStore::endPaint(const QRegion ®ion) |