diff options
| author | 2025-05-11 15:10:54 -0400 | |
|---|---|---|
| committer | 2025-05-11 15:10:54 -0400 | |
| commit | cb342b234defc1205de5d8b10ddf79deae0a551a (patch) | |
| tree | 135a8f17ef297dcfa71cfa24de0170797add999e /src/fruits/cmc/ui/widgets | |
| parent | bbdc4ed66aa171f89f675aa1c82316477d5fd47e (diff) | |
| download | camu-cb342b234defc1205de5d8b10ddf79deae0a551a.tar.gz camu-cb342b234defc1205de5d8b10ddf79deae0a551a.tar.bz2 camu-cb342b234defc1205de5d8b10ddf79deae0a551a.zip | |
Add keybind to disable scaling filter
- Fix no FFmpeg build.
- Cleanup commented code from cmc ui.
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/fruits/cmc/ui/widgets')
| -rw-r--r-- | src/fruits/cmc/ui/widgets/now_playing.c | 23 |
1 files changed, 23 insertions, 0 deletions
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); +*/ |