mirror of
https://github.com/status-im/qzxing.git
synced 2025-02-16 12:58:31 +00:00
clean up
This commit is contained in:
parent
a20d6b352e
commit
2e7d14bfd6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user