X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg_profiler.h;fp=vg_profiler.h;h=dedea02ca887fb9ef6ca9bbddf2b8cd510a68201;hb=f6ea7c881fe9fdd885f57e0b3d7daa9829f48d47;hp=bfdde127af5b921840a79b66aa7c57c7367996be;hpb=c8399b3248b4965990ec2573d3ac2e27b1b8dbcc;p=vg.git diff --git a/vg_profiler.h b/vg_profiler.h index bfdde12..dedea02 100644 --- a/vg_profiler.h +++ b/vg_profiler.h @@ -58,7 +58,6 @@ VG_STATIC void vg_profile_end( struct vg_profile *profile ) } } -#if 0 VG_STATIC void vg_profile_drawn( struct vg_profile **profiles, u32 count, float budget, ui_rect panel, u32 colour_offset ) { @@ -74,7 +73,7 @@ VG_STATIC void vg_profile_drawn( struct vg_profile **profiles, u32 count, float sh = panel[3] / VG_PROFILE_SAMPLE_COUNT, sw = panel[2]; - ui_fill_rect( panel, 0xa0000000 ); + ui_fill( panel, 0xa0000000 ); assert( count <= 8 ); double avgs[8]; @@ -107,7 +106,7 @@ VG_STATIC void vg_profile_drawn( struct vg_profile **profiles, u32 count, wx, sh }; u32 colour = colours[ (j+colour_offset) % vg_list_size(colours) ]; - ui_fill_rect( block, colour ); + ui_fill( block, colour ); total += sample; avgs[j] += sample; @@ -118,10 +117,10 @@ VG_STATIC void vg_profile_drawn( struct vg_profile **profiles, u32 count, snprintf( infbuf, 64, "accuracy: %.7fms", rate_mul ); ui_text( (ui_rect){ panel[0] + 4, - panel[1] + 0 * 14, 0, 0 }, + panel[1] + 0 * 14, 500, 30 }, infbuf, 1, - k_text_align_left ); + k_ui_align_left, 0 ); for( int i=0; i