more fb info
authorhgn <hgodden00@gmail.com>
Tue, 11 Jun 2024 19:07:41 +0000 (20:07 +0100)
committerhgn <hgodden00@gmail.com>
Tue, 11 Jun 2024 19:07:41 +0000 (20:07 +0100)
vg_framebuffer.c

index 3eb7b8664bb399c860979116b655dcfd9ef5f3fb..8a70b61239fa8a229a344538b4496f7ff2654e11 100644 (file)
@@ -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;