1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-06-30 08:24:05 +00:00
This commit is contained in:
DaMarkov 2022-03-04 14:31:04 +01:00
parent 9c187aa79f
commit 9c60bf101f
2 changed files with 1 additions and 4 deletions

View File

@ -226,14 +226,11 @@ loop1:
static static
uint8 CalculateMaxCI8b(const uint8* src, uint32 width, uint32 height, uint32 rowStride) uint8 CalculateMaxCI8b(const uint8* src, uint32 width, uint32 height, uint32 rowStride)
{ {
uint32_t depth = rowStride / width;
uint8 max = 0; uint8 max = 0;
for (uint32 y = 0; y < height; ++y) { for (uint32 y = 0; y < height; ++y) {
const uint8 * buf = src + rowStride * y; const uint8 * buf = src + rowStride * y;
for (uint32 x = 0; x < width; ++x) { for (uint32 x = 0; x < width; ++x) {
uint8 val = buf[x];
if (buf[x] > max) if (buf[x] > max)
max = buf[x]; max = buf[x];
if (max == 0xFF) if (max == 0xFF)

View File

@ -54,7 +54,7 @@ void _ProcessDList()
#else #else
RSP.words = *(Gwords*)&RDRAM[RSP.PC[RSP.PCi]]; RSP.words = *(Gwords*)&RDRAM[RSP.PC[RSP.PCi]];
RSP.cmd = _SHIFTR(RSP.words.w0, 24, 8); RSP.cmd = _SHIFTR(RSP.words.w0, 24, 8);
#endif #endif
#ifdef DEBUG_DUMP #ifdef DEBUG_DUMP
DebugMsg(DEBUG_LOW, "0x%08lX: CMD=0x%02lX W0=0x%08lX W1=0x%08lX\n", RSP.PC[RSP.PCi], _SHIFTR(RSP.words.w0, 24, 8), RSP.words.w0, RSP.words.w1); DebugMsg(DEBUG_LOW, "0x%08lX: CMD=0x%02lX W0=0x%08lX W1=0x%08lX\n", RSP.PC[RSP.PCi], _SHIFTR(RSP.words.w0, 24, 8), RSP.words.w0, RSP.words.w1);