Explorar el Código

Fixed a bug introduced by 00bf467

Bogdan Poplauschi hace 9 años
padre
commit
efad1e5
Se han modificado 1 ficheros con 1 adiciones y 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;