X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg%2Fvg_debug.h;fp=vg%2Fvg_debug.h;h=16dbbe1592927915a7a573d9048b051543ae4a3e;hb=fefce08c7eecf3eb66553825ba421b5b81dae5eb;hp=9c7d87fbb5219f1ec3345204a3e09d207d0a5be6;hpb=b2ed006db6dc46c57b163f572391ac74a94f4a4f;p=fishladder.git diff --git a/vg/vg_debug.h b/vg/vg_debug.h index 9c7d87f..16dbbe1 100644 --- a/vg/vg_debug.h +++ b/vg/vg_debug.h @@ -31,23 +31,13 @@ static void sfx_internal_debug_overlay(void) sfx_system *sys = sfx_sys + i; struct sound_info *snd = &infos[ i ]; - snd->signal = sys->signal_average; + //snd->signal = sys->signal_average; snd->name = sys->name; snd->cursor = sys->cur; snd->flags = sys->flags; - - if( sys->thread_clone ) - { - snd->clip_start = sys->thread_clone->clip_start; - snd->clip_end = sys->thread_clone->clip_end; - snd->buffer_length = sys->thread_clone->buffer_length; - } - else - { - snd->clip_start = 0; - snd->clip_end = sys->end; - snd->buffer_length = sys->end; - } + snd->clip_start = sys->clip_start; + snd->clip_end = sys->clip_end; + snd->buffer_length = sys->buffer_length; } MUTEX_UNLOCK( sfx_mux_t01 ); @@ -61,7 +51,7 @@ static void sfx_internal_debug_overlay(void) ui_global_ctx.cursor[2] = 150; ui_global_ctx.cursor[3] = 12; - u32 alpha = (infos[i].flags & SFX_FLAG_GHOST)? 0x44000000: 0xff000000; + u32 alpha = (infos[i].flags & SFX_FLAG_PERSISTENT)? 0xff000000: 0x22000000; ui_new_node( &ui_global_ctx ); { @@ -86,7 +76,7 @@ static void sfx_internal_debug_overlay(void) ui_global_ctx.cursor[0] = baseline + 2; ui_global_ctx.cursor[1] += 2; - ui_text( &ui_global_ctx, infos[i].name, 1, 0 ); + ui_text( &ui_global_ctx, infos[i].name, 1 ); } ui_end_down( &ui_global_ctx ); ui_global_ctx.cursor[1] += 1;