summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-12-02 17:54:53 +0100
committerChristian Göttsche <cgzones@googlemail.com>2020-12-02 17:54:53 +0100
commitec0f5d0ba9518267b5f92812965509a5753875f3 (patch)
treeca53a8edc18a1b7be4912920853165ad47163f24
parentbbac4c2a62471f52400c570cb4a4860b5c8f4b5e (diff)
Compare indices not index with pair
Fixes always true condition. Found by LGTM.com
-rw-r--r--CRT.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/CRT.c b/CRT.c
index 02063552..51fc876b 100644
--- a/CRT.c
+++ b/CRT.c
@@ -794,7 +794,7 @@ void CRT_setColors(int colorScheme) {
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
- if (ColorIndex(i, j) != ColorPairGrayBlack) {
+ if (ColorIndex(i, j) != ColorIndexGrayBlack) {
int bg = (colorScheme != COLORSCHEME_BLACKNIGHT)
? (j == 0 ? -1 : j)
: j;

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