Changeset 612 for trunk/LocalPlayer
- Timestamp:
- Sep 13, 2024, 8:37:17 PM (2 months ago)
- Location:
- trunk/LocalPlayer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/PVSB.pas
r611 r612 55 55 Self.Max := Max; 56 56 ScrollBar.Position := 0; 57 {$IFDEF UNIX} 57 58 ScrollBar.Visible := Max > ScrollBar.PageSize; 59 {$ELSE} 60 ScrollBar.Visible := Max >= ScrollBar.PageSize; 61 {$ENDIF} 58 62 end; 59 63 -
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.