diff options
author | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2011-03-07 12:45:24 (GMT) |
---|---|---|
committer | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2011-03-07 12:45:24 (GMT) |
commit | cee7a42f5bf6473cecafc2bf98e9b383cb3edede (patch) | |
tree | cb9abed47016d03d956e59407eb43bf00dc3cae9 /src/openvg/qvg_symbian.cpp | |
parent | dda11ee48e323f4f4c6490822aa8921d5d6e3e69 (diff) | |
download | Qt-cee7a42f5bf6473cecafc2bf98e9b383cb3edede.zip Qt-cee7a42f5bf6473cecafc2bf98e9b383cb3edede.tar.gz Qt-cee7a42f5bf6473cecafc2bf98e9b383cb3edede.tar.bz2 |
VGImage readback support in QPixmap on OpenVG.
Enable readback of pixel data for pixmaps that are constructed directly
from a VGImage. These do not have any backing data in main memory
(i.e. 'source' is null), however certain operations, like toImage(),
fill(), or painting into the pixmap do not work without it. With this
patch the data is read back via vgGetImageSubData when needed.
Task-number: QT-4669
Reviewed-by: Jani Hautakangas
Diffstat (limited to 'src/openvg/qvg_symbian.cpp')
-rw-r--r-- | src/openvg/qvg_symbian.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvg/qvg_symbian.cpp b/src/openvg/qvg_symbian.cpp index 22cbb3c..c6521fd 100644 --- a/src/openvg/qvg_symbian.cpp +++ b/src/openvg/qvg_symbian.cpp @@ -127,7 +127,7 @@ void QVGPixmapData::fromNativeType(void* pixmap, NativeType type) } is_null = (w <= 0 || h <= 0); - source = QVolatileImage(); // vgGetImageSubData() some day? + source = QVolatileImage(); // readback will be done later, only when needed recreate = false; prevSize = QSize(w, h); updateSerial(); |