Skip to content

Commit

Permalink
Added fix to solve app bug when secondary monitor plugged-in
Browse files Browse the repository at this point in the history
  • Loading branch information
Shark-93 committed Jun 9, 2024
1 parent 1acb8a4 commit b7a450d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.pas
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ constructor TMainForm.Create(AOwner: TComponent);
SetTitle( Format(L_GET('app.title')+' © Tema567', [L_GET('app.name'), L_GET('app.ver')]) );
Self.BorderStyle := bsDialog;
Self.BorderIcons := [];
Self.Position := poDesktopCenter;
Self.Position := poScreenCenter;
Self.DefaultMonitor := dmPrimary;
{ Get DPI value }
dpi := Self.PixelsPerInch / 96;
Expand Down

1 comment on commit b7a450d

@Shark-93
Copy link
Owner Author

@Shark-93 Shark-93 commented on b7a450d Jun 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix found by @pvtstandon in 2022, reported on Discord. The Key Man would be "hidden" in the 0px space between the two monitors; the workaround was to unplug the secondary monitor and start BF2KeyMan.exe again. This modified line fixes the problem of the app's start position.
image 1

Please sign in to comment.