From 1df4e70f2fd6715e4919bf7b20cbe4266e1eb0f4 Mon Sep 17 00:00:00 2001 From: hgn Date: Tue, 11 Jun 2024 20:07:41 +0100 Subject: [PATCH] more fb info --- vg_framebuffer.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/vg_framebuffer.c b/vg_framebuffer.c index 3eb7b86..8a70b61 100644 --- a/vg_framebuffer.c +++ b/vg_framebuffer.c @@ -376,12 +376,13 @@ void vg_framebuffer_ui( ui_context *ctx ) ui_image( ctx, img, &fb->attachments[j].id ); } - ui_rect top, sub, next; - ui_split( frame, k_ui_axis_h, ctx->font->sy*2 + 18, 8, top, next ); - ui_split( next, k_ui_axis_h, ctx->font->sy + 18, 8, sub, next ); - - ui_text( ctx, top, fb->display_name, 2, k_ui_align_middle_left, 0 ); - ui_text( ctx, sub, at->display_name, 1, k_ui_align_middle_left, 0 ); + ui_rect panel; + rect_copy( frame, panel ); + ui_info( ctx, panel, fb->display_name ); + ui_info( ctx, panel, at->display_name ); + ui_info( ctx, panel, render_fb_attachment_str( at->attachment ) ); + ui_info( ctx, panel, render_fb_format_str( at->internalformat ) ); + ui_info( ctx, panel, render_fb_format_str( at->format ) ); frame[0] += w; -- 2.25.1