- Timestamp:
- Sep 28, 2022, 10:14:34 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UEngine.pas
r102 r103 1850 1850 else AvailableImprovements := AvailableImprovements - [miLine]; 1851 1851 1852 // Select offered improvements 1852 1853 Improvements := TList<TMetroImprovement>.Create; 1853 1854 try -
trunk/UView.pas
r98 r103 58 58 if RectEquals(FSourceRect, AValue) then Exit; 59 59 FSourceRect := AValue; 60 ZX := (FDestRect.Right - FDestRect.Left) / (FSourceRect.Right - FSourceRect.Left); 61 ZY := (FDestRect.Bottom - FDestRect.Top) / (FSourceRect.Bottom - FSourceRect.Top); 62 if ZX > ZY then 63 Zoom := ZY 64 else Zoom := ZX; 60 if ((FSourceRect.Right - FSourceRect.Left) <> 0) and 61 ((FSourceRect.Bottom - FSourceRect.Top) <> 0) then begin 62 ZX := (FDestRect.Right - FDestRect.Left) / (FSourceRect.Right - FSourceRect.Left); 63 ZY := (FDestRect.Bottom - FDestRect.Top) / (FSourceRect.Bottom - FSourceRect.Top); 64 if ZX > ZY then 65 Zoom := ZY 66 else Zoom := ZX; 67 end else Zoom := 1; 65 68 end; 66 69
Note:
See TracChangeset
for help on using the changeset viewer.