summaryrefslogtreecommitdiff
path: root/bindings.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2018-11-19 09:52:07 -0800
committerMichael Pavone <pavone@retrodev.com>2018-11-19 09:52:07 -0800
commit654b9b962025cd4bb404eeccfb3ef1fcfd40ece7 (patch)
tree0cf1240b89b181c4b9472cb52886bac0446e87d1 /bindings.c
parent909f6628edf5b5446586321c0a4df5045f2955c8 (diff)
Basic version of layer compositing debug view in a separate window
Diffstat (limited to 'bindings.c')
-rw-r--r--bindings.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/bindings.c b/bindings.c
index fc3d13a..c4f3530 100644
--- a/bindings.c
+++ b/bindings.c
@@ -40,6 +40,7 @@ typedef enum {
UI_PLANE_DEBUG,
UI_VRAM_DEBUG,
UI_CRAM_DEBUG,
+ UI_COMPOSITE_DEBUG
} ui_action;
typedef struct {
@@ -378,7 +379,8 @@ void handle_binding_up(keybinding * binding)
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 @@ void handle_binding_up(keybinding * binding)
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 @@ int parse_binding_target(int device_num, char * target, tern_node * padbuttons,
*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;