From 2a01b305b671529de31b14ec4e560489054c34b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?joseLu=C3=ADs?= Date: Mon, 22 Nov 2021 14:16:32 +0100 Subject: [PATCH] [docs] minor fix & update --- USAGE.md | 2 +- include/notcurses/notcurses.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/USAGE.md b/USAGE.md index 79734b06b..a076afc8f 100644 --- a/USAGE.md +++ b/USAGE.md @@ -321,7 +321,7 @@ unsigned notcurses_palette_size(const struct notcurses* nc); bool notcurses_canfade(const struct notcurses* nc); // Can we directly specify RGB values per cell, or only use palettes? -bool notcurses_can_truecolor(const struct notcurses* nc); +bool notcurses_cantruecolor(const struct notcurses* nc); // Can we load images? This requires being built against FFmpeg/OIIO. bool notcurses_canopen_images(const struct notcurses* nc); diff --git a/include/notcurses/notcurses.h b/include/notcurses/notcurses.h index 43b2ad3a2..08fb413d3 100644 --- a/include/notcurses/notcurses.h +++ b/include/notcurses/notcurses.h @@ -333,6 +333,8 @@ ncchannels_set_fchannel(uint64_t* channels, uint32_t channel){ return *channels = (*channels & 0xfffffffflu) | ((uint64_t)channel << 32u); } +// Creates a new channel pair using 'fchan' as the foreground channel +// and 'bchan' as the background channel. static inline uint64_t ncchannels_combine(uint32_t fchan, uint32_t bchan){ uint64_t channels = 0;