diff vdp.c @ 2693:46dba737b931

WIP Nuklear UI in VDP debug windows
author Michael Pavone <pavone@retrodev.com>
date Thu, 19 Jun 2025 19:59:05 -0700
parents 05915f01046d
children
line wrap: on
line diff
--- a/vdp.c	Sun Jun 15 15:46:34 2025 -0700
+++ b/vdp.c	Thu Jun 19 19:59:05 2025 -0700
@@ -11,6 +11,9 @@
 #include "util.h"
 #include "event_log.h"
 #include "terminal.h"
+#ifndef DISABLE_NUKLEAR
+#include "nuklear_ui/debug_ui.h"
+#endif
 
 #define NTSC_INACTIVE_START 224
 #define PAL_INACTIVE_START 240
@@ -6608,7 +6611,11 @@
 			return;
 		}
 		current_vdp = context;
+#ifdef DISABLE_NUKLEAR
 		context->debug_fb_indices[debug_type] = render_create_window(caption, width, height, vdp_debug_window_close);
+#else
+		context->debug_fb_indices[debug_type] = debug_create_window(debug_type, caption, width, height, vdp_debug_window_close);
+#endif
 		if (context->debug_fb_indices[debug_type]) {
 			context->enabled_debuggers |= 1 << debug_type;
 		}