Commit graph

11 commits

Author SHA1 Message Date
Pat Hartl
502f15d66e Merge branch 'fix-mulri-monitor-scaling' 2026-02-27 18:41:04 -06:00
Pat Hartl
a315088efc Force window position / dimensions
Fixes issues with scaled multi-monitor setups where original window creation might get the wrong dimensions.
2026-02-27 18:40:47 -06:00
Pat Hartl
51ef9b94f1 Fix additional arguments not being passed 2025-02-19 00:05:17 -06:00
Pat Hartl
dd0f1c1c1b Make application DPI aware, auto-patch video settings 2025-02-18 23:51:40 -06:00
johnbrechbuhl85
6ccac8e53d Moved the process.HasExited check before the Process Has Changed message and removed the process.MainWindowHandle == IntPtr.Zero check. 2022-08-27 09:15:48 -05:00
johnbrechbuhl85
3af78f4fc8 Check to see if BF1942 has been closed from the main menu and if the MainWindowHandle is equal to IntPtr.Zero or not.
If those conditions are met, then break out of the retryCount loop and set keepAlive to false.
2022-08-24 11:21:23 -05:00
johnbrechbuhl85
b9ac19053e Reverted white space changes and updated console messages to use ISO 8601 date format.
Modified the "if (oldProcessId == process.Id)" condition to call Environment.Exit(0) and close Borderless1942 when BF1942 is closed.
2022-08-20 10:38:13 -05:00
johnbrechbuhl85
1c58edc1cb Small modification to prevent the Borderless1942 program from closing when changing maps during multiplayer.
Tested the changes using the master.bf1942.org master server patch from the link below.
https://www.moddb.com/games/battlefield-1942/downloads/bf1942-masterbf1942org-patch
2022-08-19 18:11:47 -05:00
Turnerj
02a8a58508 Use CsWin32 for Win32 access 2022-01-19 15:02:25 +10:30
Turnerj
b7db332350 Use TerraFX Interop 2022-01-18 18:25:47 +10:30
Turnerj
a3c34feed3 Add project files. 2021-11-25 16:28:49 +10:30