diff options
author | Anders Bakken <anders.bakken@nokia.com> | 2009-08-25 18:19:59 (GMT) |
---|---|---|
committer | Anders Bakken <anders.bakken@nokia.com> | 2009-08-25 18:23:43 (GMT) |
commit | 9dc0914b30a3266be586e1dece931bcdb2f21e49 (patch) | |
tree | e7eef3c13ab4422d7f76c7d5c822ecabe576b3bb /src | |
parent | 3d885b2c75d4854266e6552d2659505f132acd00 (diff) | |
download | Qt-9dc0914b30a3266be586e1dece931bcdb2f21e49.zip Qt-9dc0914b30a3266be586e1dece931bcdb2f21e49.tar.gz Qt-9dc0914b30a3266be586e1dece931bcdb2f21e49.tar.bz2 |
Optimize QDirectFBPaintDevice::bytesPerLine
If we actually need it locked we'll probably need it locked for
read|write.
Reviewed-by: Donald Carr <donald.carr@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/gfxdrivers/directfb/qdirectfbpaintdevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpaintdevice.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpaintdevice.cpp index f45f256..6abf0ff 100644 --- a/src/plugins/gfxdrivers/directfb/qdirectfbpaintdevice.cpp +++ b/src/plugins/gfxdrivers/directfb/qdirectfbpaintdevice.cpp @@ -104,7 +104,7 @@ int QDirectFBPaintDevice::bytesPerLine() const // Can only get the stride when we lock the surface Q_ASSERT(!lockedImage); QDirectFBPaintDevice* that = const_cast<QDirectFBPaintDevice*>(this); - that->lockDirectFB(DSLF_READ); + that->lockDirectFB(DSLF_READ|DSLF_WRITE); Q_ASSERT(bpl != -1); } return bpl; |