Explorar o código

Fixed a bug introduced by 00bf467

Bogdan Poplauschi %!s(int64=9) %!d(string=hai) anos
pai
achega
efad1e5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      SDWebImage/SDWebImageDecoder.m

+ 1 - 1
SDWebImage/SDWebImageDecoder.m

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