From 06839d4ee32a7c27f3cbddf0edf6b3fda2221f44 Mon Sep 17 00:00:00 2001 From: adrienmalin <41926238+adrienmalin@users.noreply.github.com> Date: Wed, 20 Feb 2019 17:42:13 +0100 Subject: [PATCH] Update terminis.py --- terminis/terminis.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/terminis/terminis.py b/terminis/terminis.py index be12f92..48aa435 100644 --- a/terminis/terminis.py +++ b/terminis/terminis.py @@ -696,10 +696,10 @@ class Game: for y, word in enumerate((("GA", "ME") ,("OV", "ER")), start=Matrix.NB_LINES//2): for x, char in enumerate(word, start=Matrix.NB_COLS//2-1): color = self.matrix.cells[y][x] - if color is not None: - color |= curses.A_REVERSE - else: + if color is None: color = curses.COLOR_BLACK + else: + color |= curses.A_REVERSE self.matrix.window.addstr(y, x*2+1, char, color) self.matrix.window.refresh() curses.beep()