Changeset 612 for trunk/LocalPlayer/Term.pas
- Timestamp:
- Sep 13, 2024, 8:37:17 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Term.pas
r611 r612 6862 6862 trixFocus, uix, uixDefender: Integer; 6863 6863 Prio: Boolean; 6864 RowsCount: Integer; 6864 6865 begin 6865 6866 TroopLoc := Loc; … … 6889 6890 else 6890 6891 begin 6891 VerticalScrollBar.Init(Ceil(TrCnt / TrRow), 1); 6892 {$IFDEF UNIX} 6893 RowsCount := Ceil(TrCnt / TrRow); 6894 {$ELSE} 6895 RowsCount := (TrCnt + TrRow - 1) div TrRow - 1; 6896 {$ENDIF} 6897 VerticalScrollBar.Init(RowsCount, 1); 6892 6898 if (VerticalScrollBar.Max >= VerticalScrollBar.PageSize) and (trixFocus >= 0) then 6893 6899 VerticalScrollBar.Position := trixFocus div TrRow;
Note:
See TracChangeset
for help on using the changeset viewer.