aboutsummaryrefslogtreecommitdiffstats
path: root/surfaces/draw.c
diff options
context:
space:
mode:
authoreunhhu <[email protected]>2026-10-18 23:54:06 +0100
committereunhhu <[email protected]>2026-10-18 23:54:06 +0100
commita2ad1a7a9cd3e608f3fb4e5a694540a9cfef9c69 (patch)
treef40556ac45d36bb749ea64948f5e19659a882ee6 /surfaces/draw.c
parentda79f1e2b8d49dabe2290f5d795f8809c8b15c0f (diff)
downloadvega-master.tar.gz
vega-master.zip
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 countHEADmaster
Diffstat (limited to 'surfaces/draw.c')
-rw-r--r--surfaces/draw.c4
1 files changed, 2 insertions, 2 deletions
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]];