mirror of
https://github.com/blawar/GLideN64.git
synced 2024-06-30 08:24:05 +00:00
Cleanup
This commit is contained in:
parent
9c187aa79f
commit
9c60bf101f
|
@ -226,14 +226,11 @@ loop1:
|
|||
static
|
||||
uint8 CalculateMaxCI8b(const uint8* src, uint32 width, uint32 height, uint32 rowStride)
|
||||
{
|
||||
uint32_t depth = rowStride / width;
|
||||
uint8 max = 0;
|
||||
|
||||
for (uint32 y = 0; y < height; ++y) {
|
||||
const uint8 * buf = src + rowStride * y;
|
||||
for (uint32 x = 0; x < width; ++x) {
|
||||
uint8 val = buf[x];
|
||||
|
||||
if (buf[x] > max)
|
||||
max = buf[x];
|
||||
if (max == 0xFF)
|
||||
|
|
Loading…
Reference in New Issue
Block a user