From 05a83e54c7ee9890a197c18f955d4d1f2827057e Mon Sep 17 00:00:00 2001 From: nick black Date: Fri, 31 Jan 2020 00:55:25 -0500 Subject: [PATCH] Selector: inverse rather than reverse video #302 --- src/lib/selector.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/selector.c b/src/lib/selector.c index 1649d8137..79388ea61 100644 --- a/src/lib/selector.c +++ b/src/lib/selector.c @@ -66,17 +66,17 @@ ncselector_draw(ncselector* n){ if(n->maxdisplay && printed == n->maxdisplay){ break; } + n->ncp->channels = n->opchannels; if(printidx == n->selected){ - ncplane_styles_on(n->ncp, CELL_STYLE_REVERSE); + n->ncp->channels = (uint64_t)channels_bchannel(n->opchannels) << 32u | channels_fchannel(n->opchannels); } - n->ncp->channels = n->opchannels; ncplane_printf_yx(n->ncp, yoff, bodyoffset, "%*.*s", (int)n->longop, (int)n->longop, n->items[printidx].option); n->ncp->channels = n->descchannels; - ncplane_printf_yx(n->ncp, yoff, bodyoffset + n->longop, " %s", n->items[printidx].desc); if(printidx == n->selected){ - ncplane_styles_off(n->ncp, CELL_STYLE_REVERSE); + n->ncp->channels = (uint64_t)channels_bchannel(n->descchannels) << 32u | channels_fchannel(n->descchannels); } + ncplane_printf_yx(n->ncp, yoff, bodyoffset + n->longop, " %s", n->items[printidx].desc); if(++printidx == n->itemcount){ printidx = 0; }