diff --git a/glava.c b/glava.c index f688a6a..4a2e70d 100644 --- a/glava.c +++ b/glava.c @@ -306,7 +306,7 @@ int main(int argc, char** argv) { } after: if (sep >= 0) { - parsed_type = strdup(optarg + sep + 1); + parsed_type = optarg + sep + 1; optarg[sep] = '\0'; } parsed_name = optarg; diff --git a/glsl_ext.c b/glsl_ext.c index 10b2bca..4955142 100644 --- a/glsl_ext.c +++ b/glsl_ext.c @@ -489,7 +489,7 @@ void ext_process(struct glsl_ext* ext, const char* f) { for (size_t p = 0; p < bbuf_idx; ++p) if (bbuf[p] == ':') sep = p; if (sep >= 0) { - parsed_default = strdup(bbuf + sep + 1); + parsed_default = bbuf + sep + 1; bbuf[sep] = '\0'; } parsed_name = bbuf; diff --git a/shaders/bars.glsl b/shaders/bars.glsl index 41c7557..c0b321f 100644 --- a/shaders/bars.glsl +++ b/shaders/bars.glsl @@ -20,7 +20,7 @@ /* Bar color changes with height */ #define GRADIENT (d / GRADIENT_POWER + 1) /* Bar color */ -#define COLOR (#3366b2 * GRADIENT) +#define COLOR (@fg:#3366b2 * GRADIENT) /* Direction that the bars are facing, 0 for inward, 1 for outward */ #define DIRECTION 0 /* Whether to switch left/right audio buffers */