Skip to content

Commit

Permalink
lighter grid, showing tile boundaries
Browse files Browse the repository at this point in the history
  • Loading branch information
untoxa committed Jan 29, 2021
1 parent 7f14544 commit 5f056f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gbcomp/Gbpgrd.pas
Original file line number Diff line number Diff line change
Expand Up @@ -242,23 +242,23 @@ procedure TGBPixelGrid.Paint;
end;

(* Draw gridlines *)
if FGridLines then
begin
if FGridLines then with Image.Canvas do begin
(* draw horizontal lines *)
for i := 1 to FYLen-1 do
with Image.Canvas do
begin
if (i mod 8 = 0) then Pen.Color:= clBlack else Pen.Color:= clLtGray;
MoveTo(i*FPixelSize,1);
LineTo(i*FPixelSize, height-1);
end;

(* draw vertical lines *)
for i := 1 to FYLen-1 do
with Image.Canvas do
begin
if (i mod 8 = 0) then Pen.Color:= clBlack else Pen.Color:= clLtGray;
MoveTo(1,i*FPixelSize);
LineTo(Width-1, i*FPixelSize);
end;
Pen.Color:= clBlack;
end;

(* Draw nibble markers *)
Expand Down

0 comments on commit 5f056f7

Please sign in to comment.