diff options
Diffstat (limited to 'src/platformsupport/fbconvenience/qfbbackingstore.cpp')
-rw-r--r-- | src/platformsupport/fbconvenience/qfbbackingstore.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/platformsupport/fbconvenience/qfbbackingstore.cpp b/src/platformsupport/fbconvenience/qfbbackingstore.cpp index 80ba4031ec..14a51d7a67 100644 --- a/src/platformsupport/fbconvenience/qfbbackingstore.cpp +++ b/src/platformsupport/fbconvenience/qfbbackingstore.cpp @@ -51,7 +51,6 @@ QT_BEGIN_NAMESPACE QFbBackingStore::QFbBackingStore(QWindow *window) : QPlatformBackingStore(window) { - mImage = QImage(window->size(), window->screen()->handle()->format()); (static_cast<QFbWindow *>(window->handle()))->setBackingStore(this); } @@ -67,18 +66,12 @@ void QFbBackingStore::flush(QWindow *window, const QRegion ®ion, const QPoint (static_cast<QFbWindow *>(window->handle()))->repaint(region); } -void QFbBackingStore::resize(const QSize &size, const QRegion ®ion) +void QFbBackingStore::resize(const QSize &size, const QRegion &staticContents) { - Q_UNUSED(region); - // change the widget's QImage if this is a resize + Q_UNUSED(staticContents); + if (mImage.size() != size) mImage = QImage(size, window()->screen()->handle()->format()); - // QPlatformBackingStore::resize(size); -} - -bool QFbBackingStore::scroll(const QRegion &area, int dx, int dy) -{ - return QPlatformBackingStore::scroll(area, dx, dy); } void QFbBackingStore::beginPaint(const QRegion ®ion) |