parent
9f202f4302
commit
771a1686a3
1 changed files with 50 additions and 0 deletions
@ -0,0 +1,50 @@ |
||||
From 02dbd062099f90386ce601308c3ada1b9f07ab6d Mon Sep 17 00:00:00 2001
|
||||
From: Jacopo De Simoi <wilderjds@protonmail.com>
|
||||
Date: Mon, 17 Nov 2025 12:46:37 -0500
|
||||
Subject: [PATCH 01/22] Make the separator larger
|
||||
|
||||
---
|
||||
Header.c | 8 +++++---
|
||||
1 file changed, 5 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/Header.c b/Header.c
|
||||
index 8a9eae34..87cba5cc 100644
|
||||
--- a/Header.c
|
||||
+++ b/Header.c
|
||||
@@ -194,12 +194,14 @@ void Header_reinit(Header* this) {
|
||||
void Header_draw(const Header* this) {
|
||||
const int height = this->height;
|
||||
const int pad = this->pad;
|
||||
+ const int sep = 3;
|
||||
+
|
||||
attrset(CRT_colors[RESET_COLOR]);
|
||||
for (int y = 0; y < height; y++) {
|
||||
mvhline(y, 0, ' ', COLS);
|
||||
}
|
||||
const int numCols = HeaderLayout_getColumns(this->headerLayout);
|
||||
- const int width = COLS - 2 * pad - (numCols - 1);
|
||||
+ const int width = COLS - 2 * pad - sep*((int)numCols - 1);
|
||||
int x = pad;
|
||||
float roundingLoss = 0.0F;
|
||||
|
||||
@@ -222,7 +224,7 @@ void Header_draw(const Header* this) {
|
||||
except for multi column meters. */
|
||||
if (meter->mode == TEXT_METERMODE && !Meter_isMultiColumn(meter)) {
|
||||
for (int j = 1; j < meter->columnWidthCount; j++) {
|
||||
- actualWidth++; /* separator column */
|
||||
+ actualWidth+=sep; /* separator column */
|
||||
actualWidth += (float)width * HeaderLayout_layouts[this->headerLayout].widths[col + j] / 100.0F;
|
||||
}
|
||||
}
|
||||
@@ -233,7 +235,7 @@ void Header_draw(const Header* this) {
|
||||
}
|
||||
|
||||
x += floorf(colWidth);
|
||||
- x++; /* separator column */
|
||||
+ x+= sep; /* separator column */
|
||||
}
|
||||
}
|
||||
|
||||
--
|
||||
2.51.0
|
||||
|
||||
Loading…
Reference in new issue