diff options
author | Tapani Pälli <tapani.palli@nokia.com> | 2011-03-16 07:25:45 (GMT) |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-03-16 07:28:57 (GMT) |
commit | 60bec281fe0a82556c07db3f8e13587d47b8449e (patch) | |
tree | 686ecc46d8c843019b339cccc76a53241ef092ae /src/plugins/graphicssystems | |
parent | 7c99a5273bea6f071efcd8441bedc1b768cc1d7a (diff) | |
download | Qt-60bec281fe0a82556c07db3f8e13587d47b8449e.zip Qt-60bec281fe0a82556c07db3f8e13587d47b8449e.tar.gz Qt-60bec281fe0a82556c07db3f8e13587d47b8449e.tar.bz2 |
QMeeGoLivePixmapData : when creating QImage, use constructor with pitch.
As the data may be aligned/padded by the X driver.
Fixes: NB#231246 : Incorrect stride used when QMeeGoLivePixmap width not multiple of eight
Merge-request: 1115
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/plugins/graphicssystems')
-rw-r--r-- | src/plugins/graphicssystems/meego/qmeegolivepixmapdata.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/graphicssystems/meego/qmeegolivepixmapdata.cpp b/src/plugins/graphicssystems/meego/qmeegolivepixmapdata.cpp index 2a2a098..0970b89 100644 --- a/src/plugins/graphicssystems/meego/qmeegolivepixmapdata.cpp +++ b/src/plugins/graphicssystems/meego/qmeegolivepixmapdata.cpp @@ -219,7 +219,7 @@ QImage* QMeeGoLivePixmapData::lock(EGLSyncKHR fenceSync) return &lockedImage; } - lockedImage = QImage((uchar *) data, width(), height(), format); + lockedImage = QImage((uchar *) data, width(), height(), pitch, format); return &lockedImage; } |