From 92b5d23185f4de46fe43516a0aebf279d2858591 Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 24 Nov 2019 21:59:43 -0500 Subject: [PATCH] widecolor: don't require a plane --- src/bin/widecolor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/widecolor.c b/src/bin/widecolor.c index f4668219d..19df410f6 100644 --- a/src/bin/widecolor.c +++ b/src/bin/widecolor.c @@ -5,7 +5,7 @@ #include "demo.h" // Much of this text comes from http://kermitproject.org/utf8.html -int widecolor_demo(struct notcurses* nc, struct ncplane* n){ +int widecolor_demo(struct notcurses* nc){ static const char* strs[] = { "Война и мир", "Бра́тья Карама́зовы", @@ -200,6 +200,7 @@ int widecolor_demo(struct notcurses* nc, struct ncplane* n){ const int steps[] = { 1, 16, count, count + 16, }; const int starts[] = { 0, 48 * count, 48 * count, 48 * count, }; + struct ncplane* n = notcurses_stdplane(nc); size_t i; for(i = 0 ; i < sizeof(steps) / sizeof(*steps) ; ++i){ const int start = starts[i];