void renderer_update_caches(int x, int y, int w, int h)
{
update_texture_cache_region(&egpu, x, y, x + w - 1, y + h - 1);
- if (gpu.state.enhancement_active && !gpu.status.rgb24)
+ if (gpu.state.enhancement_active &&
+ !(gpu.status & PSX_GPU_STATUS_RGB24))
sync_enhancement_buffers(x, y, w, h);
}
/*
printf("res change hres: %d vres: %d depth: %d ilace_mask: %d\n",
- gpu.screen.hres, gpu.screen.vres, gpu.status.rgb24 ? 24 : 15,
+ gpu.screen.hres, gpu.screen.vres, (gpu.status & PSX_GPU_STATUS_RGB24) ? 24 : 15,
gpu_unai.ilace_mask);
*/
}
gpu_unai.ilace_mask = gpu_unai.config.ilace_force;
#ifdef HAVE_PRE_ARMV7 /* XXX */
- gpu_unai.ilace_mask |= gpu.status.interlace;
+ gpu_unai.ilace_mask |= !!(gpu.status & PSX_GPU_STATUS_INTERLACE);
#endif
if (gpu_unai.config.scale_hires) {
- gpu_unai.ilace_mask |= gpu.status.interlace;
+ gpu_unai.ilace_mask |= !!(gpu.status & PSX_GPU_STATUS_INTERLACE);
}
for (; list < list_end; list += 1 + len)