fix circular buffer, fix 24bpp mode
This commit is contained in:
parent
bc83c9c917
commit
b84ef509ec
Binary file not shown.
|
@ -204,7 +204,7 @@ void CDHLEReset(void)
|
|||
}
|
||||
}
|
||||
|
||||
cd_read_orig_addr_start = cd_read_addr_start = dstStart;
|
||||
cd_read_addr_start = dstStart;
|
||||
|
||||
SET32(jaguarMainRAM, 4, cd_boot_addr);
|
||||
SET16(jaguarMainRAM, 0x3004, 0x0403); // BIOS VER
|
||||
|
@ -519,7 +519,7 @@ static void CD_read(void)
|
|||
cd_read_lba = lba;
|
||||
cd_buf_pos = 0;
|
||||
cd_buf_rm = bufRm;
|
||||
cd_buf_circular_size = circBufSz;
|
||||
cd_buf_circular_size = circBufSz ? (1 << circBufSz) : 0;
|
||||
RemoveCallback(CDHLECallback);
|
||||
SetCallbackTime(CDHLECallback, 240 >> (cd_mode & 1));
|
||||
JERRYWriteWord(0xF10020, 0, M68K);
|
||||
|
|
|
@ -291,7 +291,7 @@ void tom_render_24bpp_scanline(uint32_t * backbuffer)
|
|||
uint32_t r = *current_line_buffer++;
|
||||
current_line_buffer++;
|
||||
uint32_t b = *current_line_buffer++;
|
||||
*backbuffer++ = 0x000000FF | (r << 24) | (g << 16) | (b << 8);
|
||||
*backbuffer++ = (r << 16) | (g << 8) | b;
|
||||
width--;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue