Fixed drawing

This commit is contained in:
Simon Cambier 2022-06-01 21:52:45 +02:00
parent f7dab009b3
commit 17c7de2240

View File

@ -374,7 +374,7 @@ function Board.new()
local x,y = self:idx_xy(k) local x,y = self:idx_xy(k)
local color = v == BLUE and 12 or v == YELLOW and 8 or 1 local color = v == BLUE and 12 or v == YELLOW and 8 or 1
if color == 1 then fillp() else fillp() end if color == 1 then fillp() else fillp() end
rectfill( rectfill2(
margin + (x-1)*w + (x-1)*(padding+1), margin + (x-1)*w + (x-1)*(padding+1),
margin + (y-1)*w + (y-1)*(padding+1), margin + (y-1)*w + (y-1)*(padding+1),
w, w, color) w, w, color)