From 43d08f30b8564708a53f0d03a7a4033fcf63bab9 Mon Sep 17 00:00:00 2001 From: William McBrine Date: Fri, 17 May 2019 17:20:08 -0400 Subject: [PATCH] Center gradient --- demos/testcurs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/testcurs.c b/demos/testcurs.c index 91b30d77..5cc4d91e 100644 --- a/demos/testcurs.c +++ b/demos/testcurs.c @@ -1199,7 +1199,7 @@ void gradient(int tmarg) "White on red to green on blue, underlined (if available)" }; const int len = (int)strlen(output_text[i]); - move(tmarg + 3 + i, 1); + move(tmarg + 3 + i, (COLS - 69) / 2); for (j = 0; j < len; j++) { const int oval = j * 1000 / len;