diff --git a/effects/screenshot/screenshot.cpp b/effects/screenshot/screenshot.cpp index d6e121a8da..ca4a6ed798 100644 --- a/effects/screenshot/screenshot.cpp +++ b/effects/screenshot/screenshot.cpp @@ -107,7 +107,7 @@ static QSize pickWindowSize(const QImage &image) const uint32_t bytesPerPixel = image.depth() >> 3; const uint32_t bytesPerLine = image.bytesPerLine(); - if (image.sizeInBytes() <= maximumDataSize) { + if (image.byteCount() <= maximumDataSize) { return image.size(); }