Changeset 171 for trunk/Forms
- Timestamp:
- Nov 23, 2017, 7:05:37 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r170 r171 247 247 procedure TFormMain.AZoomAllExecute(Sender: TObject); 248 248 var 249 Factor: T FloatPoint;249 Factor: TPointF; 250 250 MapRect: TRect; 251 251 NewZoom: Single; … … 253 253 with Core, Game, CurrentClient, View do begin 254 254 MapRect := Map.CalculatePixelRect; 255 Factor := FloatPoint(DestRect.Size.X / MapRect.Size.X,255 Factor := TPointF.Create(DestRect.Size.X / MapRect.Size.X, 256 256 DestRect.Size.Y / MapRect.Size.Y); 257 257 if Factor.X < Factor.Y then NewZoom := Factor.X
Note:
See TracChangeset
for help on using the changeset viewer.