diff --git a/src/QZXingFilter.cpp b/src/QZXingFilter.cpp index 4959d9c..b218037 100644 --- a/src/QZXingFilter.cpp +++ b/src/QZXingFilter.cpp @@ -180,7 +180,7 @@ static QImage* rgbDataToGrayscale(const uchar* data, const CaptureRect& captureR for (int y = 1; y <= captureRect.targetHeight; ++y) { //Quick fix for iOS & macOS devices. Will be handled better in the future -#if defined(Q_OS_IOS) || (defined (Q_OS_MAC)) +#if defined(Q_OS_IOS) || defined (Q_OS_MAC) uchar* pixel = pixelInit + (y - 1) * captureRect.targetWidth; #else uchar* pixel = pixelInit + (captureRect.targetHeight - y) * captureRect.targetWidth;