Ignore:
Timestamp:
Sep 15, 2024, 10:04:45 PM (2 months ago)
Author:
chronos
Message:
  • Modified: Show windows by default on primary screen if multiple monitors present.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/UnitStat.pas

    r536 r622  
    7777  NoMap := TIsoMap.Create;
    7878  AgePrepared := -2;
    79   TitleHeight := Screen.Height;
     79  TitleHeight := Screen.PrimaryMonitor.Height;
    8080  InitButtons;
    8181
     
    164164  if Kind in [dkOwnModel, dkEnemyModel] then
    165165  begin
    166     Left := UserLeft;
    167     Top := UserTop;
     166    BoundsRect := Bounds(UserLeft, UserTop, Width, Height);
    168167  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);
    171171  end;
    172172
Note: See TracChangeset for help on using the changeset viewer.