From cb342b234defc1205de5d8b10ddf79deae0a551a Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Sun, 11 May 2025 15:10:54 -0400 Subject: Add keybind to disable scaling filter - Fix no FFmpeg build. - Cleanup commented code from cmc ui. Signed-off-by: Andrew Opalach --- src/fruits/cmc/ui/widgets/now_playing.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/fruits/cmc/ui/widgets') diff --git a/src/fruits/cmc/ui/widgets/now_playing.c b/src/fruits/cmc/ui/widgets/now_playing.c index a90c7e0..748462b 100644 --- a/src/fruits/cmc/ui/widgets/now_playing.c +++ b/src/fruits/cmc/ui/widgets/now_playing.c @@ -230,3 +230,26 @@ void cmc_now_playing_render(struct cmc_now_playing *np, struct cmc_list_entry *e } ncplane_set_fg_default(np->n); } + +/* Text waveform stuff +struct nccell ncl; +nccell_init(&ncl); +nccell_load(w, &ncl, " "); +nccell_set_bg_palindex(&ncl, 3); +ncplane_polyfill_yx(w, 0, 0, &ncl); + +ncplane_set_fg_palindex(n, 5); +for (u32 j = 0; j < wave_height; j++) { + for (u32 i = 0; i < length; i++) { + char *cell = entry->raw.drawing[j][i]; + if (cell[0] == 'R') { + ncplane_set_bg_palindex(n, 2); + } + ncplane_putstr_yx(n, top + j, 1 + i, cell + 1); + if (cell[0] == 'R') { + ncplane_set_bg_default(n); + } + } +} +ncplane_set_fg_default(n); +*/ -- cgit v1.2.3-101-g0448