Changeset 622 for trunk/LocalPlayer/UnitStat.pas
- Timestamp:
- Sep 15, 2024, 10:04:45 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/UnitStat.pas
r536 r622 77 77 NoMap := TIsoMap.Create; 78 78 AgePrepared := -2; 79 TitleHeight := Screen. Height;79 TitleHeight := Screen.PrimaryMonitor.Height; 80 80 InitButtons; 81 81 … … 164 164 if Kind in [dkOwnModel, dkEnemyModel] then 165 165 begin 166 Left := UserLeft; 167 Top := UserTop; 166 BoundsRect := Bounds(UserLeft, UserTop, Width, Height); 168 167 end else begin 169 Left := (Screen.Width - Width) div 2; 170 Top := (Screen.Height - Height) div 2; 168 BoundsRect := Bounds(Screen.PrimaryMonitor.Left + (Screen.PrimaryMonitor.Width - Width) div 2, 169 Screen.PrimaryMonitor.Top + (Screen.PrimaryMonitor.Height - Height) div 2, 170 Width, Height); 171 171 end; 172 172
Note:
See TracChangeset
for help on using the changeset viewer.