From a3f3a544e90ebed221c114a80006637df0f7a116 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Tue, 23 Feb 2021 13:36:05 -0500 Subject: Alpha patch tweaked to work with tcc --- config.def.h | 9 +++++++-- config.mk | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/config.def.h b/config.def.h index 3098fbe..3ccdbe8 100644 --- a/config.def.h +++ b/config.def.h @@ -9,8 +9,13 @@ static const char *fonts[] = { "monospace:size=12", "JoyPixels:pixelsize=11:antialias=true:autohint=true" }; -static const unsigned int bgalpha = 0xe0; -static const unsigned int fgalpha = OPAQUE; + +#define bgalpha 0xe0 +#define fgalpha OPAQUE + +/* static const unsigned int bgalpha = 0xe0; */ +/* static const unsigned int fgalpha = OPAQUE; */ + static const char *prompt = NULL; /* -p option; prompt to the left of input field */ static const char *colors[SchemeLast][2] = { /* fg bg */ diff --git a/config.mk b/config.mk index 260eeae..831e549 100644 --- a/config.mk +++ b/config.mk @@ -28,4 +28,4 @@ CFLAGS = -std=c99 -pedantic -Wall -Os $(INCS) $(CPPFLAGS) LDFLAGS = $(LIBS) # compiler and linker -CC = cc +CC = tcc -- cgit v1.2.3