Authored by Bogdan Poplauschi

Fixed a bug introduced by 00bf467e

@@ -73,7 +73,7 @@ static const CGFloat kDestImageSizeMB = 60.0f; @@ -73,7 +73,7 @@ static const CGFloat kDestImageSizeMB = 60.0f;
73 static const CGFloat kSourceImageTileSizeMB = 20.0f; 73 static const CGFloat kSourceImageTileSizeMB = 20.0f;
74 74
75 static const CGFloat kBytesPerMB = 1024.0f * 1024.0f; 75 static const CGFloat kBytesPerMB = 1024.0f * 1024.0f;
76 -static const CGFloat kPixelsPerMB = kBytesPerMB * kBytesPerPixel; 76 +static const CGFloat kPixelsPerMB = kBytesPerMB / kBytesPerPixel;
77 static const CGFloat kDestTotalPixels = kDestImageSizeMB * kPixelsPerMB; 77 static const CGFloat kDestTotalPixels = kDestImageSizeMB * kPixelsPerMB;
78 static const CGFloat kTileTotalPixels = kSourceImageTileSizeMB * kPixelsPerMB; 78 static const CGFloat kTileTotalPixels = kSourceImageTileSizeMB * kPixelsPerMB;
79 79