From acb1ae4d29e694fe37f87aea073a38f04ced2a76 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Thu, 30 Nov 2023 11:37:40 +0100 Subject: Minor code simplification --- CRT.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'CRT.c') diff --git a/CRT.c b/CRT.c index 96ea00d9..bd5453bc 100644 --- a/CRT.c +++ b/CRT.c @@ -1112,9 +1112,7 @@ void CRT_setColors(int colorScheme) { for (short int i = 0; i < 8; i++) { for (short int j = 0; j < 8; j++) { if (ColorIndex(i, j) != ColorIndexGrayBlack && ColorIndex(i, j) != ColorIndexWhiteDefault) { - short int bg = (colorScheme != COLORSCHEME_BLACKNIGHT) - ? (j == 0 ? -1 : j) - : j; + short int bg = (colorScheme != COLORSCHEME_BLACKNIGHT) && (j == 0) ? -1 : j; init_pair(ColorIndex(i, j), i, bg); } } -- cgit v1.2.3