From 5bb96a79e76d92fa7ce9839a151a778f79d0ef06 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sun, 5 Aug 2018 18:34:35 -0400 Subject: Initialize all possible color pairs This is actually possible with use_default_colors! --- ui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui.c') diff --git a/ui.c b/ui.c index 5091431..1925108 100644 --- a/ui.c +++ b/ui.c @@ -42,7 +42,7 @@ static void colorInit(void) { start_color(); use_default_colors(); if (COLORS >= 16) { - for (short pair = 0; pair < 0xFF; ++pair) { + for (short pair = 0; pair < 0x100; ++pair) { if (pair < 0x10) { init_pair(1 + pair, pair, -1); } else { @@ -50,7 +50,7 @@ static void colorInit(void) { } } } else { - for (short pair = 0; pair < 077; ++pair) { + for (short pair = 0; pair < 0100; ++pair) { if (pair < 010) { init_pair(1 + pair, pair, -1); } else { -- cgit 1.4.1