about summary refs log tree commit diff stats
path: root/chesstv.tlv
diff options
context:
space:
mode:
Diffstat (limited to 'chesstv.tlv')
-rw-r--r--chesstv.tlv4
1 files changed, 2 insertions, 2 deletions
diff --git a/chesstv.tlv b/chesstv.tlv
index d9dea99..c49219d 100644
--- a/chesstv.tlv
+++ b/chesstv.tlv
@@ -48,7 +48,7 @@ function render_square(current_game, rank, file, highlighted_squares)
       or (rank == highlighted_squares.to.rank and file == highlighted_squares.to.file) then
     hl = 4
   end
-  if (rank+file)%2 == 0 then
+  if (rank+file)%2 == 1 then
     -- light square
     curses.attrset(curses.color_pair(1+hl))
   else
@@ -73,7 +73,7 @@ function render_fen_rank(rank, fen_rank, highlighted_squares)
           or (rank == highlighted_squares.to.rank and file == highlighted_squares.to.file) then
         hl = 4
       end
-      if (rank+file)%2 == 0 then
+      if (rank+file)%2 == 1 then
         if x < 'Z' then
           -- white piece on light square
           curses.attrset(curses.color_pair(1+hl))