From a2ad1a7a9cd3e608f3fb4e5a694540a9cfef9c69 Mon Sep 17 00:00:00 2001 From: eunhhu Date: Sun, 18 Oct 2026 23:54:06 +0100 Subject: Size to the module what is the module's (Pure 027's 4f-3a): timers grow to its inputs, the focus marks to its views, the accessibility tree's children to their count; a table shows its first VEGA_COLUMNS (64) columns, Vega's own count --- surfaces/draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'surfaces/draw.c') diff --git a/surfaces/draw.c b/surfaces/draw.c index e02a4ec..fecbed7 100644 --- a/surfaces/draw.c +++ b/surfaces/draw.c @@ -64,7 +64,7 @@ static void print_list(FILE *out, PureApp *app, const VegaPart *part, bool color static void print_table(FILE *out, PureApp *app, const VegaPart *part, bool color) { const PureModule *m = app->module; size_t rows = vega_rows(app, part), focus = vega_focus(app, part); - unsigned widths[PURE_MODULE_VIEWS]; + unsigned widths[VEGA_COLUMNS]; char text[VEGA_TEXT]; size_t length; for (unsigned c = 0; c < part->column_count; ++c) { @@ -416,7 +416,7 @@ static void draw_table(VegaGrid *grid, PureApp *app, const VegaPart *part, int i const PureModule *m = app->module; char text[VEGA_TEXT]; size_t length, rows = vega_rows(app, part), focus = vega_focus(app, part); - unsigned visible = height ? height - 1 : 0, widths[PURE_MODULE_VIEWS], total = 2; + unsigned visible = height ? height - 1 : 0, widths[VEGA_COLUMNS], total = 2; /* Columns as wide as their header and the rows on screen, shared out when too wide. */ for (unsigned c = 0; c < part->column_count; ++c) { const char *name = m->view_names[part->columns[c]]; -- cgit v1.2.3