summaryrefslogtreecommitdiff
path: root/ted-base.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-12-31 16:35:40 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-12-31 16:35:40 -0500
commit3f22228a220d065af3f99ba6a538ff80517ecaa2 (patch)
tree918e0254e63eb63ad9311491022ee55be2f312ac /ted-base.c
parente26bc35d04c136a142da37a87f6ba47940399879 (diff)
configurable colors
Diffstat (limited to 'ted-base.c')
-rw-r--r--ted-base.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ted-base.c b/ted-base.c
index 8771f02..784bbe9 100644
--- a/ted-base.c
+++ b/ted-base.c
@@ -4,10 +4,6 @@ typedef struct {
i64 argument;
} KeyAction;
-typedef struct {
- u32 colors[COLOR_COUNT];
-} Settings;
-
#define SCANCODE_COUNT 0x120 // SDL scancodes should be less than this value.
// a "key combo" is some subset of {control, shift, alt} + some key.
#define KEY_COMBO_COUNT (SCANCODE_COUNT << 3)
@@ -21,6 +17,7 @@ typedef struct {
typedef struct {
TextBuffer *active_buffer;
+ Settings settings;
KeyAction key_actions[KEY_COMBO_COUNT];
char error[256];
} Ted;