From a290e3f74102b34816627c3cafa4ce8d5f089a42 Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 13 Jun 2021 10:13:25 -0400 Subject: [PATCH] NEWS: fix typos info: dump more unicode --- NEWS.md | 6 +++--- src/lib/debug.c | 24 ++++++++++++++++++------ 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/NEWS.md b/NEWS.md index d99a192f5..cb65d2799 100644 --- a/NEWS.md +++ b/NEWS.md @@ -11,10 +11,10 @@ rearrangements of Notcurses. * `ncvisual_inflate()` has been rewritten as a wrapper around the new function `ncvisual_resize_noninterpolative()`, and deprecated. It will be removed for ABI3. Godspeed, `ncvisual_inflate()`; we hardly knew ye. - * `ncdirect_renderf()` has been changed to accept a `ncvisual_options`, + * `ncdirectf_render()` has been changed to accept a `ncvisual_options`, replacing and extending its four final arguments. Sorry about the breakage - here, but `ncdirect_renderf()` was introduced pretty recently (2.3.1). - As a result, `ncdirect_renderf()` and `ncdirect_stream()` now honor + here, but `ncdirectf_render()` was introduced pretty recently (2.3.1). + As a result, `ncdirectf_render()` and `ncdirect_stream()` now honor `NCVISUAL_OPTION_BLEND` and `NCVISUAL_OPTION_NOINTERPOLATE`. All of this also applies to `ncdirect_geomf()`. * `ncplayer` now accepts `-n` to force non-interpolative scaling. diff --git a/src/lib/debug.c b/src/lib/debug.c index ab3c00cb0..8a71c9cdf 100644 --- a/src/lib/debug.c +++ b/src/lib/debug.c @@ -43,12 +43,24 @@ tinfo_debug_caps(const tinfo* ti, FILE* debugfp, int rows, int cols, capbool(ti->sextants), capbool(ti->braille), capbool(images), capbool(videos)); if(ti->utf8){ - fprintf(debugfp, "%s Halves {%ls} Quads {%ls}\n", indent, - get_blitter_egcs(NCBLIT_2x1), get_blitter_egcs(NCBLIT_2x2)); - fprintf(debugfp, "%sSextants ⎧%.120ls⎫\n", indent, get_blitter_egcs(NCBLIT_3x2)); - fprintf(debugfp, "%s ⎩%ls⎭\n", indent, get_blitter_egcs(NCBLIT_3x2) + 32); - fprintf(debugfp, "%s Braille {%ls}\n", indent, get_blitter_egcs(NCBLIT_BRAILLE)); - fprintf(debugfp, "%sLower ⅛s {%ls}\n", indent, get_blitter_egcs(NCBLIT_8x1)); + fprintf(debugfp, "%s Halves {%ls} Quads {%ls} Light ⎧%.6ls%.3ls⎫ Heavy ⎧%.6ls%.3ls⎫\n", indent, + get_blitter_egcs(NCBLIT_2x1), get_blitter_egcs(NCBLIT_2x2), + NCBOXLIGHTW, NCBOXLIGHTW + 4, + NCBOXHEAVYW, NCBOXHEAVYW + 4); + fprintf(debugfp, "%sSextants ⎧%.120ls⎫ ⎩%.6ls%.3ls⎭ ⎩%.6ls%.3ls⎭\n", indent, + get_blitter_egcs(NCBLIT_3x2), + NCBOXLIGHTW + 2, NCBOXLIGHTW + 5, + NCBOXHEAVYW + 2, NCBOXHEAVYW + 5); + fprintf(debugfp, "%s ⎩%ls⎭ Round ⎧%.6ls%.3ls⎫ Frame ⎧%.6ls%.3ls⎫\n", indent, + get_blitter_egcs(NCBLIT_3x2) + 32, + NCBOXROUNDW, NCBOXROUNDW + 4, + NCBOXDOUBLEW, NCBOXDOUBLEW + 4); + fprintf(debugfp, "%s Braille {%ls} ⎩%.6ls%.3ls⎭ ⎩%.6ls%.3ls⎭\n", indent, + get_blitter_egcs(NCBLIT_BRAILLE), + NCBOXROUNDW + 2, NCBOXROUNDW + 5, + NCBOXDOUBLEW + 2, NCBOXDOUBLEW + 5); + fprintf(debugfp, "%sLower ⅛s {%ls} Upper ⅛s {%s}\n", indent, + get_blitter_egcs(NCBLIT_8x1), " ▔🮂🮃▀🮄🮅🮆█"); } if(ti->bg_collides_default){ fprintf(debugfp, "%sbackground of 0x%06lx is considered transparent\n", indent, ti->bg_collides_default & 0xfffffful);