summaryrefslogtreecommitdiff
path: root/vdp.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2019-04-02 23:55:21 -0700
committerMichael Pavone <pavone@retrodev.com>2019-04-02 23:55:21 -0700
commit3e02b77f1b411e8170f68a6380c378362eef4074 (patch)
treee27abd549a1106910ef96441eb0976a71c1032ca /vdp.h
parentc55f96b60d5b9d47522d2ca4d581acbbbe2d39f9 (diff)
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
Diffstat (limited to 'vdp.h')
-rw-r--r--vdp.h3
1 files changed, 2 insertions, 1 deletions
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;