Changeset 622 for trunk/Start.pas
- Timestamp:
- Sep 15, 2024, 10:04:45 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Start.pas
r597 r622 252 252 end; // default AI not found, use any 253 253 254 DirectDlg.Left := (Screen.Width - DirectDlg.Width) div 2; 255 DirectDlg.Top := (Screen.Height - DirectDlg.Height) div 2; 254 DirectDlg.CenterToScreen; 256 255 257 256 UpdateInterface; … … 509 508 begin 510 509 if FullScreen then begin 511 Location := Point( (Screen.Width - 800) * 3 div 8,512 Screen. Height - Height - (Screen.Height - 600) div 3);510 Location := Point(Screen.PrimaryMonitor.Left + (Screen.PrimaryMonitor.Width - 800) * 3 div 8, 511 Screen.PrimaryMonitor.Top + Screen.PrimaryMonitor.Height - Height - (Screen.PrimaryMonitor.Height - 600) div 3); 513 512 BoundsRect := Bounds(Location.X, Location.Y, Width, Height); 514 513 … … 524 523 DeleteObject(r0); // causes crash with Windows 95 525 524 end else begin 526 BoundsRect := Bounds((Screen.Width - Width) div 2, 527 (Screen.Height - Height) div 2, Width, Height); 525 CenterToScreen; 528 526 end; 529 527 end;
Note:
See TracChangeset
for help on using the changeset viewer.