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/Select.pas

    r613 r622  
    15451545var
    15461546  I: Integer;
     1547  NewTop, NewLeft: Integer;
    15471548begin
    15481549  Result := -1;
     
    16431644  begin { center on screen }
    16441645    if Kind = kTribe then
    1645       Left := (Screen.Width - 800) * 3 div 8 + 130
     1646      NewLeft := Screen.PrimaryMonitor.Left + (Screen.PrimaryMonitor.Width - 800) * 3 div 8 + 130
    16461647    else
    1647       Left := (Screen.Width - Width) div 2;
    1648     Top := (Screen.Height - Height) div 2;
     1648      NewLeft := Screen.PrimaryMonitor.Left + (Screen.PrimaryMonitor.Width - Width) div 2;
     1649    NewTop := Screen.PrimaryMonitor.Top + (Screen.PrimaryMonitor.Height - Height) div 2;
    16491650    if Kind = kProject then
    1650       Top := Top + 48;
     1651      NewTop := NewTop + 48;
     1652    BoundsRect := Bounds(NewLeft, NewTop, Width, Height);
    16511653  end;
    16521654
Note: See TracChangeset for help on using the changeset viewer.