mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
vdp, optimisation for 8bit renderers
This commit is contained in:
parent
1f49b75032
commit
352479001c
4 changed files with 18 additions and 13 deletions
|
@ -364,7 +364,7 @@ void pemu_finalize_frame(const char *fps, const char *notice)
|
|||
localPalSize = make_local_pal(1);
|
||||
// a hack for VR
|
||||
if (PicoIn.AHW & PAHW_SVP)
|
||||
memset32((int *)(Pico.est.Draw2FB+328*8+328*223), 0xe0e0e0e0, 328);
|
||||
memset32((int *)(Pico.est.Draw2FB+328*8+328*223), 0xe0e0e0e0, 328/4);
|
||||
// do actual copy
|
||||
vidcpyM2(g_screen_ptr, Pico.est.Draw2FB+328*8,
|
||||
!(Pico.video.reg[12] & 1), !(PicoIn.opt & POPT_DIS_32C_BORDER));
|
||||
|
|
|
@ -107,7 +107,7 @@ static void apply_renderer(void)
|
|||
case RT_8BIT_ACC:
|
||||
PicoIn.opt &= ~POPT_ALT_RENDERER;
|
||||
PicoDrawSetOutFormat(PDF_8BIT, 0);
|
||||
PicoDrawSetOutBuf(Pico.est.Draw2FB + 8, 328);
|
||||
PicoDrawSetOutBuf(Pico.est.Draw2FB, 328);
|
||||
break;
|
||||
case RT_8BIT_FAST:
|
||||
PicoIn.opt |= POPT_ALT_RENDERER;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue