diff options
author | Michael Pavone <pavone@retrodev.com> | 2019-04-02 23:55:21 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2019-04-02 23:55:21 -0700 |
commit | 3e02b77f1b411e8170f68a6380c378362eef4074 (patch) | |
tree | e27abd549a1106910ef96441eb0976a71c1032ca /vdp.h | |
parent | c55f96b60d5b9d47522d2ca4d581acbbbe2d39f9 (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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |