Skip to content

Commit

Permalink
Minor code simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
BenBE committed Dec 26, 2023
1 parent 2af66a4 commit acb1ae4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CRT.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit acb1ae4

Please sign in to comment.