Changeset 330 for trunk/ClientGUI.pas


Ignore:
Timestamp:
Jul 19, 2024, 9:46:33 PM (4 months ago)
Author:
chronos
Message:
  • Fixed: New game symetric map units calcualtion.
  • Fixed: Map preview with cell and unit borders.
  • Fixed: Allow to set preferred game system grid type.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ClientGUI.pas

    r318 r330  
    195195      Pen.Width := 0;
    196196    end;
     197
     198    // Cannot set clear border as it will display shifted on gtk2
     199    //Pen.Style := psClear;
     200    Pen.Style := psSolid;
     201    if CellGridVisible then begin
     202      Pen.Color := clBlack;
     203      Pen.Width := Round(2 * View.Zoom);
     204    end else begin
     205      Pen.Color := Brush.Color;
     206      Pen.Width := 0;
     207    end;
     208
    197209    // Transform view
    198210    SetLength(Points, Length(Cell.Polygon.Points));
     
    684696    else NewZoom := Factor.Y;
    685697  if NewZoom = 0 then NewZoom := 1;
    686   Zoom := NewZoom;
     698  Zoom := NewZoom * 0.9;
    687699  CenterMap;
    688700end;
Note: See TracChangeset for help on using the changeset viewer.