mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-06 03:18:14 +00:00
REVIEWED #4206
This commit is contained in:
@@ -4993,7 +4993,7 @@ static int rlGetPixelDataSize(int width, int height, int format)
|
|||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
|
||||||
float bytesPerPixel = (float)bpp/8.0f;
|
double bytesPerPixel = (double)bpp/8.0;
|
||||||
dataSize = (int)(bytesPerPixel*width*height); // Total data size in bytes
|
dataSize = (int)(bytesPerPixel*width*height); // Total data size in bytes
|
||||||
|
|
||||||
// Most compressed formats works on 4x4 blocks,
|
// Most compressed formats works on 4x4 blocks,
|
||||||
|
@@ -5403,7 +5403,7 @@ int GetPixelDataSize(int width, int height, int format)
|
|||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
|
||||||
float bytesPerPixel = (float)bpp/8.0f;
|
double bytesPerPixel = (double)bpp/8.0;
|
||||||
dataSize = (int)(bytesPerPixel*width*height); // Total data size in bytes
|
dataSize = (int)(bytesPerPixel*width*height); // Total data size in bytes
|
||||||
|
|
||||||
// Most compressed formats works on 4x4 blocks,
|
// Most compressed formats works on 4x4 blocks,
|
||||||
|
Reference in New Issue
Block a user