From ea1c10dcfde98473918d0f6a5ffbace2c3a67857 Mon Sep 17 00:00:00 2001 From: nick black Date: Wed, 24 Nov 2021 03:21:29 -0500 Subject: [PATCH] kill trailing whitespace --- src/lib/blitset.h | 2 +- src/lib/fade.c | 2 +- src/lib/internal.h | 2 +- src/lib/reel.c | 2 +- src/lib/windows.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/blitset.h b/src/lib/blitset.h index eb564c9cc..037faba9c 100644 --- a/src/lib/blitset.h +++ b/src/lib/blitset.h @@ -25,7 +25,7 @@ encoding_x_scale(const tinfo* tcache, const struct blitset* bset) { // Expand NCBLIT_DEFAULT for media blitting, based on environment. We never // use NCBLIT_PIXEL for NCBLIT_DEFAULT, though maybe this ought change. -static inline ncblitter_e +static inline ncblitter_e rgba_blitter_default(const tinfo* tcache, ncscale_e scale){ if(!tcache->caps.utf8){ return NCBLIT_1x1; // only one that works in ASCII diff --git a/src/lib/fade.c b/src/lib/fade.c index 9b0e5e83e..9e37cf96f 100644 --- a/src/lib/fade.c +++ b/src/lib/fade.c @@ -230,7 +230,7 @@ int ncplane_fadeout_iteration(ncplane* n, ncfadectx* nctx, int iter, return ret; } -static ncfadectx* +static ncfadectx* ncfadectx_setup_internal(ncplane* n, const struct timespec* ts){ if(!ncplane_notcurses(n)->tcache.caps.rgb && !ncplane_notcurses(n)->tcache.caps.can_change_colors){ // terminal can't fade diff --git a/src/lib/internal.h b/src/lib/internal.h index 02c7d3226..049f5abc4 100644 --- a/src/lib/internal.h +++ b/src/lib/internal.h @@ -1555,7 +1555,7 @@ rgba_trans_p(uint32_t p, uint32_t transcolor){ if(ncpixel_a(p) < 192){ return true; } - if(transcolor && + if(transcolor && (ncpixel_r(p) == (transcolor & 0xff0000ull) >> 16) && (ncpixel_g(p) == (transcolor & 0xff00ull) >> 8) && (ncpixel_b(p) == (transcolor & 0xffull))){ diff --git a/src/lib/reel.c b/src/lib/reel.c index 034d22aab..27f27102b 100644 --- a/src/lib/reel.c +++ b/src/lib/reel.c @@ -390,7 +390,7 @@ ncreel_draw_tablet(const ncreel* nr, nctablet* t, int frontiertop, } // We needn't move the resized plane if drawing down, or the focused plane. // The focused tablet will have been resized properly above, but it might - // be out of position (the focused tablet ought move as little as possible). + // be out of position (the focused tablet ought move as little as possible). // Move it back to the frontier, or the nearest line above if it has grown. if(nr->tablets == t){ if(leny - frontiertop + 1 < ll){ diff --git a/src/lib/windows.c b/src/lib/windows.c index 6ddb16e52..8771d8366 100644 --- a/src/lib/windows.c +++ b/src/lib/windows.c @@ -36,7 +36,7 @@ int prepare_windows_terminal(tinfo* ti, size_t* tablelen, size_t* tableused){ { ESCAPE_RMUL, "\x1b[24m", }, { ESCAPE_SGR0, "\x1b[0m", }, { ESCAPE_MAX, NULL, } - }, *w; + }, *w; for(w = wterms ; w->tinfo; ++w){ if(grow_esc_table(ti, w->tinfo, w->esc, tablelen, tableused)){ return -1;