Mercurial > repos > blastem
diff bindings.c @ 1641:bc9bb4e5856f
Basic version of layer compositing debug view in a separate window
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 19 Nov 2018 09:52:07 -0800 |
parents | f27142c48567 |
children | 6909c5d0bbb5 |
line wrap: on
line diff
--- a/bindings.c Fri Nov 16 19:56:24 2018 -0800 +++ b/bindings.c Mon Nov 19 09:52:07 2018 -0800 @@ -40,6 +40,7 @@ UI_PLANE_DEBUG, UI_VRAM_DEBUG, UI_CRAM_DEBUG, + UI_COMPOSITE_DEBUG } ui_action; typedef struct { @@ -378,7 +379,8 @@ break; case UI_PLANE_DEBUG: case UI_VRAM_DEBUG: - case UI_CRAM_DEBUG: { + case UI_CRAM_DEBUG: + case UI_COMPOSITE_DEBUG: { vdp_context *vdp = NULL; if (current_system->type == SYSTEM_GENESIS) { genesis_context *gen = (genesis_context *)current_system; @@ -394,6 +396,7 @@ case UI_PLANE_DEBUG: debug_type = VDP_DEBUG_PLANE; break; case UI_VRAM_DEBUG: debug_type = VDP_DEBUG_VRAM; break; case UI_CRAM_DEBUG: debug_type = VDP_DEBUG_CRAM; break; + case UI_COMPOSITE_DEBUG: debug_type = VDP_DEBUG_COMPOSITE; break; default: return; } vdp_toggle_debug_view(vdp, debug_type); @@ -609,6 +612,8 @@ *subtype_a = UI_VRAM_DEBUG; } else if (!strcmp(target + 3, "cram_debug")) { *subtype_a = UI_CRAM_DEBUG; + } else if (!strcmp(target + 3, "compositing_debug")) { + *subtype_a = UI_COMPOSITE_DEBUG; } else { warning("Unreconized UI binding type %s\n", target); return 0;