Skip to content

Commit

Permalink
Merge pull request bitcoin#2289 from laanwj/201301_qimage_bits
Browse files Browse the repository at this point in the history
Use QImage.bits instead of QImage.constBits to ease backporting
  • Loading branch information
laanwj committed Feb 10, 2013
2 parents f507067 + 17121ec commit 6749082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt/notificator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6749082

Please sign in to comment.