From 3e02b77f1b411e8170f68a6380c378362eef4074 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Tue, 2 Apr 2019 23:55:21 -0700 Subject: Separate compositing from final output. Fixes some minor accuracy issues with regards to when background color reg/CRAM changes take effect. Fixes minor glitch in DF Retro Direct Color DMA demo at inactive/active transition --- vdp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vdp.h') diff --git a/vdp.h b/vdp.h index a11c0a4..46400e6 100644 --- a/vdp.h +++ b/vdp.h @@ -163,9 +163,9 @@ typedef struct { system_header *system; //pointer to current line in framebuffer uint32_t *output; - uint32_t *done_output; //pointer to current framebuffer uint32_t *fb; + uint8_t *done_composite; uint32_t *debug_fbs[VDP_NUM_DEBUG_TYPES]; uint32_t output_pitch; uint32_t debug_fb_pitch[VDP_NUM_DEBUG_TYPES]; @@ -205,6 +205,7 @@ typedef struct { uint16_t test_port; //stores 2-bit palette + 4-bit palette index + priority for current sprite line uint8_t linebuf[LINEBUF_SIZE]; + uint8_t compositebuf[LINEBUF_SIZE]; uint8_t layer_debug_buf[LINEBUF_SIZE]; uint8_t hslot; //hcounter/2 uint8_t sprite_index; -- cgit v1.2.3