summaryrefslogtreecommitdiffstats
path: root/Settings.h
diff options
context:
space:
mode:
authorExplorer09 <explorer09@gmail.com>2024-04-18 22:18:40 +0800
committerBenBE <BenBE@geshi.org>2024-04-20 19:36:00 +0200
commitc2c2a70997a0bf40b0484af6d82c4d41d370d06d (patch)
treeaf1e89442ddadf21cebccd2d60705cc4258d2454 /Settings.h
parentc167a2c4c514ffb1feb3b087060e0c0ee36578d1 (diff)
Define MeterModeId to unsigned int and use it throughout
All uses of meter drawing "mode" numbers now have the type `MeterModeId`, including the uses in structures and arrays. `MeterModeId` is defined as `unsigned int`, as (currently) it doesn't save any code size by defining it to any smaller type. Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
Diffstat (limited to 'Settings.h')
-rw-r--r--Settings.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Settings.h b/Settings.h
index b5bc8efd..9d9e0dba 100644
--- a/Settings.h
+++ b/Settings.h
@@ -13,6 +13,7 @@ in the source distribution for its full text.
#include "Hashtable.h"
#include "HeaderLayout.h"
+#include "MeterMode.h"
#include "Row.h"
#include "RowField.h"
@@ -34,7 +35,7 @@ typedef struct {
typedef struct {
size_t len;
char** names;
- int* modes;
+ MeterModeId* modes;
} MeterColumnSetting;
typedef struct ScreenSettings_ {

© 2014-2024 Faster IT GmbH | imprint | privacy policy