From 89188be968ac39e0e12077e6b596efaf00d06986 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sun, 8 Mar 2026 10:12:57 -0700 Subject: Store strings inside table cells for simplicity --- src/render.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/render.c') diff --git a/src/render.c b/src/render.c index f716e1a..2d3764a 100644 --- a/src/render.c +++ b/src/render.c @@ -163,7 +163,6 @@ static void RenderText(const char* text, size_t length, RenderState* state) { /// Render a frame. static void RenderFrame(const uiFrame* frame, RenderState* state) { assert(frame); - FillRect(&frame->widget.rect, uiBlack, state); } @@ -171,7 +170,6 @@ static void RenderFrame(const uiFrame* frame, RenderState* state) { static void RenderLabel(const uiLabel* label, RenderState* state) { assert(label); assert(state); - RenderText(string_data(label->text), string_length(label->text), state); } @@ -198,7 +196,7 @@ static void RenderTable(const uiTable* table, RenderState* state) { &original_subsurface, &original_pen); const uiCell* cell = &table->header[col]; - RenderWidget(state, cell->child); + RenderText(string_data(cell->text), string_length(cell->text), state); // Reset the original subsurface and pen for subsequent columns. PopSubsurface(state, &original_subsurface, &original_pen); @@ -228,7 +226,7 @@ static void RenderTable(const uiTable* table, RenderState* state) { state->pen.x = 0; const uiCell* cell = GetCell(table, row, col); - RenderWidget(state, cell->child); + RenderText(string_data(cell->text), string_length(cell->text), state); // Reset the original subsurface and pen for subsequent columns. PopSubsurface(state, &original_subsurface, &original_pen); -- cgit v1.2.3