Changeset 16 for trunk


Ignore:
Timestamp:
Oct 5, 2019, 11:56:55 AM (5 years ago)
Author:
chronos
Message:
  • Fixed: Calculate cell margin according board size.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UGame.pas

    r14 r16  
    254254begin
    255255  TopBarHeight := ScaleY(24, 96);
    256   CellMargin := ScaleX(4, 96);
     256  CellMargin := Round(CanvasSize.X / Size.X * 0.02);
    257257  Canvas.Brush.Style := bsSolid;
    258258  Canvas.Brush.Color := clBlack;
Note: See TracChangeset for help on using the changeset viewer.