From 9d460b1c0cb573fc56799de236a1a8dd4cc6cdc0 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 8 Apr 2026 09:53:37 -0400 Subject: Move color and noclick intialization to config. 7556 bytes free. --- src/config.h | 2 -- src/main.c | 5 ----- 2 files changed, 7 deletions(-) (limited to 'src') diff --git a/src/config.h b/src/config.h index ff25ea1..8470cc2 100644 --- a/src/config.h +++ b/src/config.h @@ -13,6 +13,4 @@ typedef struct { char disable_keyclick; } conf_t; -extern conf_t *conf; - #define config (*(conf_t *)0x0400) diff --git a/src/main.c b/src/main.c index 54e5b87..536923d 100644 --- a/src/main.c +++ b/src/main.c @@ -133,11 +133,6 @@ void reconnect(void) { void main(void) { bell_type = config.alert_type; /* TODO: have bell.s read staight from the struct */ OS.soundr = 0; // Turn off SIO beeping sound - OS.color2 = config.colors[0]; /* text BG, user-selected */ - OS.color1 = config.colors[1]; - OS.color0 = 0x06; /* grey for inactive */ - OS.color3 = 0x46; /* red for highlight */ - OS.noclik = config.disable_keyclick; edbox_clear(); scr_init(); -- cgit v1.2.3