diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2012-01-23 10:41:53 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-27 17:49:12 (GMT) |
commit | fcb241b874330a045e5ba4634598476706ca7fdc (patch) | |
tree | 021079eba93c9ea23a30880bf431a1aad1ab1387 /src/gui/painting/qblittable.cpp | |
parent | bd85d2bbb3ab9bff189ef70f86df8c2ad12e3c36 (diff) | |
download | Qt-fcb241b874330a045e5ba4634598476706ca7fdc.zip Qt-fcb241b874330a045e5ba4634598476706ca7fdc.tar.gz Qt-fcb241b874330a045e5ba4634598476706ca7fdc.tar.bz2 |
blitter: Kill the isBlitterLocked variable of the
It starts with being initialized wrongly, the call to buffer() will
lock the data while we think it is not locked, it can also get out of
sync by someone calling buffer() again. Remove the variable and
check with the QBlittable if we need to lock the resource into memory.
Change-Id: I6d7b336ed2e272724ec5b1348b410cbc4452422f
Based-On: I350375011138d1b4c2c48c100b7b30b8ea2ae460
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/gui/painting/qblittable.cpp')
-rw-r--r-- | src/gui/painting/qblittable.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/painting/qblittable.cpp b/src/gui/painting/qblittable.cpp index a64396a..f7d994e 100644 --- a/src/gui/painting/qblittable.cpp +++ b/src/gui/painting/qblittable.cpp @@ -80,6 +80,12 @@ QSize QBlittable::size() const return d->m_size; } +bool QBlittable::isLocked() const +{ + Q_D(const QBlittable); + return d->locked; +} + QImage *QBlittable::lock() { Q_D(QBlittable); |