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

    r570 r622  
    169169    0:
    170170      begin
    171         Left := (Screen.Width - Width) div 2;
    172         Top := (Screen.Height - Height) div 2 - MapCenterUp;
     171        Left := Screen.PrimaryMonitor.Left + (Screen.PrimaryMonitor.Width - Width) div 2;
     172        Top := Screen.PrimaryMonitor.Top + (Screen.PrimaryMonitor.Height - Height) div 2 - MapCenterUp;
    173173      end;
    174174    1:
    175175      begin
    176         Left := (Screen.Width - Width) div 4;
    177         Top := (Screen.Height - Height) * 2 div 3 - MapCenterUp;
     176        Left := Screen.PrimaryMonitor.Left + (Screen.PrimaryMonitor.Width - Width) div 4;
     177        Top := Screen.PrimaryMonitor.Top + (Screen.PrimaryMonitor.Height - Height) * 2 div 3 - MapCenterUp;
    178178      end;
    179179    -1:
    180180      begin
    181         Left := (Screen.Width - Width) div 4;
    182         Top := (Screen.Height - Height) div 3 - MapCenterUp;
     181        Left := Screen.PrimaryMonitor.Left + (Screen.PrimaryMonitor.Width - Width) div 4;
     182        Top := Screen.PrimaryMonitor.Top + (Screen.PrimaryMonitor.Height - Height) div 3 - MapCenterUp;
    183183      end;
    184184  end;
Note: See TracChangeset for help on using the changeset viewer.