summaryrefslogtreecommitdiffstats
path: root/CRT.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2023-11-30 11:37:40 +0100
committerBenBE <BenBE@geshi.org>2023-12-26 15:14:19 +0100
commitacb1ae4d29e694fe37f87aea073a38f04ced2a76 (patch)
tree789df48166e139e3db3feac9dbecb14c5ffb9556 /CRT.c
parent2af66a4aba4aac75d7f00d47481513e4ae3e6b9f (diff)
Minor code simplification
Diffstat (limited to 'CRT.c')
-rw-r--r--CRT.c4
1 files changed, 1 insertions, 3 deletions
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);
}
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy