diff options
| author | Wladimir J. van der Laan <[email protected]> | 2013-02-10 09:27:31 -0800 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2013-02-10 09:27:31 -0800 |
| commit | 6749082294ad0ebad197dd830de0506d4a4d8520 (patch) | |
| tree | d6bc938f0814f008ec2cea7a31a7f26d26e46ec0 /src | |
| parent | Merge commit 'd38c6488d067c2e88726e2ca99bc76fd67dab49b' (diff) | |
| parent | Use QImage.bits instead of QImage.constBits to ease backporting (diff) | |
| download | discoin-6749082294ad0ebad197dd830de0506d4a4d8520.tar.xz discoin-6749082294ad0ebad197dd830de0506d4a4d8520.zip | |
Merge pull request #2289 from laanwj/201301_qimage_bits
Use QImage.bits instead of QImage.constBits to ease backporting
Diffstat (limited to 'src')
| -rw-r--r-- | src/qt/notificator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/notificator.cpp b/src/qt/notificator.cpp index 8028190b8..628dca159 100644 --- a/src/qt/notificator.cpp +++ b/src/qt/notificator.cpp @@ -113,7 +113,7 @@ FreedesktopImage::FreedesktopImage(const QImage &img): { // Convert 00xAARRGGBB to RGBA bytewise (endian-independent) format QImage tmp = img.convertToFormat(QImage::Format_ARGB32); - const uint32_t *data = reinterpret_cast<const uint32_t*>(tmp.constBits()); + const uint32_t *data = reinterpret_cast<const uint32_t*>(tmp.bits()); unsigned int num_pixels = width * height; image.resize(num_pixels * BYTES_PER_PIXEL); |