Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
2692:effbb52ab3f0 | 2693:46dba737b931 |
---|---|
9 #include <string.h> | 9 #include <string.h> |
10 #include "render.h" | 10 #include "render.h" |
11 #include "util.h" | 11 #include "util.h" |
12 #include "event_log.h" | 12 #include "event_log.h" |
13 #include "terminal.h" | 13 #include "terminal.h" |
14 #ifndef DISABLE_NUKLEAR | |
15 #include "nuklear_ui/debug_ui.h" | |
16 #endif | |
14 | 17 |
15 #define NTSC_INACTIVE_START 224 | 18 #define NTSC_INACTIVE_START 224 |
16 #define PAL_INACTIVE_START 240 | 19 #define PAL_INACTIVE_START 240 |
17 #define MODE4_INACTIVE_START 192 | 20 #define MODE4_INACTIVE_START 192 |
18 #define BUF_BIT_PRIORITY 0x40 | 21 #define BUF_BIT_PRIORITY 0x40 |
6606 break; | 6609 break; |
6607 default: | 6610 default: |
6608 return; | 6611 return; |
6609 } | 6612 } |
6610 current_vdp = context; | 6613 current_vdp = context; |
6614 #ifdef DISABLE_NUKLEAR | |
6611 context->debug_fb_indices[debug_type] = render_create_window(caption, width, height, vdp_debug_window_close); | 6615 context->debug_fb_indices[debug_type] = render_create_window(caption, width, height, vdp_debug_window_close); |
6616 #else | |
6617 context->debug_fb_indices[debug_type] = debug_create_window(debug_type, caption, width, height, vdp_debug_window_close); | |
6618 #endif | |
6612 if (context->debug_fb_indices[debug_type]) { | 6619 if (context->debug_fb_indices[debug_type]) { |
6613 context->enabled_debuggers |= 1 << debug_type; | 6620 context->enabled_debuggers |= 1 << debug_type; |
6614 } | 6621 } |
6615 if (fetch_immediately) { | 6622 if (fetch_immediately) { |
6616 context->debug_fbs[debug_type] = render_get_framebuffer(context->debug_fb_indices[debug_type], &context->debug_fb_pitch[debug_type]); | 6623 context->debug_fbs[debug_type] = render_get_framebuffer(context->debug_fb_indices[debug_type], &context->debug_fb_pitch[debug_type]); |