aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-03-01 13:02:48 -0500
committerSam Anthony <sam@samanthony.xyz>2025-03-01 13:02:48 -0500
commit86e37e20bcb08025b6e8d9ba3dd970d27f9ef077 (patch)
treeb02ff14ce958f5f100ccda19a4096b1c91e8e9fe
parent5c871346cb3db341e9b4061618c3cee4497b04e9 (diff)
downloadvolute-86e37e20bcb08025b6e8d9ba3dd970d27f9ef077.zip
field size constant
-rw-r--r--widget.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/widget.h b/widget.h
index c9a9a8a..e60ffe7 100644
--- a/widget.h
+++ b/widget.h
@@ -1,9 +1,12 @@
-enum { LABEL_SIZE = 128 };
+enum {
+ FIELD_SIZE = 64,
+ LABEL_SIZE = 128,
+};
/* Field is a floating point number input field. */
typedef struct {
- char buf[64];
+ char buf[FIELD_SIZE];
double value;
int invalid;
} w_Field;