diff options
author | Benny Baumann <BenBE@geshi.org> | 2023-11-30 11:37:40 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2023-12-26 15:14:19 +0100 |
commit | acb1ae4d29e694fe37f87aea073a38f04ced2a76 (patch) | |
tree | 789df48166e139e3db3feac9dbecb14c5ffb9556 /CRT.c | |
parent | 2af66a4aba4aac75d7f00d47481513e4ae3e6b9f (diff) |
Minor code simplification
Diffstat (limited to 'CRT.c')
-rw-r--r-- | CRT.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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); } } |