close Warning: Can't synchronize with repository "(default)" (No changeset 184 in the repository). Look in the Trac log for more information.

Ignore:
Timestamp:
Nov 23, 2017, 7:05:37 PM (7 years ago)
Author:
chronos
Message:
  • Modified: Use specialized TPointF type from generic class.
  • Modified: Part of fixes for Voronoi map generation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r170 r171  
    247247procedure TFormMain.AZoomAllExecute(Sender: TObject);
    248248var
    249   Factor: TFloatPoint;
     249  Factor: TPointF;
    250250  MapRect: TRect;
    251251  NewZoom: Single;
     
    253253  with Core, Game, CurrentClient, View do begin
    254254    MapRect := Map.CalculatePixelRect;
    255     Factor := FloatPoint(DestRect.Size.X / MapRect.Size.X,
     255    Factor := TPointF.Create(DestRect.Size.X / MapRect.Size.X,
    256256      DestRect.Size.Y / MapRect.Size.Y);
    257257    if Factor.X < Factor.Y then NewZoom := Factor.X
Note: See TracChangeset for help on using the changeset viewer.