Mercurial > repos > blastem
comparison vdp.c @ 1642:c6b2c0f8cc61
Implemented support for toggling off a debug view
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 19 Nov 2018 19:10:16 -0800 |
parents | bc9bb4e5856f |
children | 6909c5d0bbb5 |
comparison
equal
deleted
inserted
replaced
1641:bc9bb4e5856f | 1642:c6b2c0f8cc61 |
---|---|
3941 } | 3941 } |
3942 | 3942 |
3943 void vdp_toggle_debug_view(vdp_context *context, uint8_t debug_type) | 3943 void vdp_toggle_debug_view(vdp_context *context, uint8_t debug_type) |
3944 { | 3944 { |
3945 if (context->enabled_debuggers & 1 << debug_type) { | 3945 if (context->enabled_debuggers & 1 << debug_type) { |
3946 //TODO: implement me | 3946 render_destroy_window(context->debug_fb_indices[debug_type]); |
3947 context->enabled_debuggers &= ~(1 << debug_type); | |
3947 } else { | 3948 } else { |
3948 uint32_t width,height; | 3949 uint32_t width,height; |
3949 uint8_t fetch_immediately = 0; | 3950 uint8_t fetch_immediately = 0; |
3950 char *caption; | 3951 char *caption; |
3951 switch(debug_type) | 3952 switch(debug_type) |