Commit Graph

1129 Commits

Author SHA1 Message Date
Terry MacDonald
0bee4dd16c Form update 2022-06-27 21:07:11 +12:00
Terry MacDonald
cb45185014 Fixed merge 2022-06-27 21:06:37 +12:00
Terry MacDonald
b1800245a6 Patch 2022-06-27 21:04:58 +12:00
Terry MacDonald
857aaafb3c Change automatic renaming of old config files
Rewrote the automatic renaming of old config files to make it more reliable, and automatically avoid renaming the files currently in use by this version of DisplayMagician. Should make it far harder for me to incorrectly break the config files.

Also make DisplayMagician log TRACE level files by default (can be adjusted by the user if wanted). This was done to make it easier for new users to log errors when things break.
2022-06-27 20:41:16 +12:00
Terry MacDonald
ec875debe7 Built new version 2022-06-21 19:01:57 +12:00
Terry MacDonald
61a24534b1 Added more extensive logging at program start
This is to help troubleshoot errors in #123
2022-06-21 19:00:48 +12:00
Terry MacDonald
9827cfac9a Fixed excessive config gathering
The NVAPI and Windows APIs were checked multiple times in a row due to a logic error. THis has been partially corrected, but needs a lot of work to straighten it out.
2022-06-18 21:31:37 +12:00
Terry MacDonald
076f9524cd Remove unneeded NvAPI_Mosaic_GetSupportedTopoInfo function
This function isn't needed, but seems to be unreliable when it's used. So diabling it within NVIDIALibrary to reduce the chances of there being memory errors thrown.
2022-06-17 10:34:31 +12:00
Terry MacDonald
bd16ecc8e9 Merge branch 'develop' of https://github.com/terrymacdonald/DisplayMagician into develop 2022-06-17 10:19:04 +12:00
Terry MacDonald
e893fbac69 Increased logging and improved uplay library processing 2022-06-17 10:18:55 +12:00
terrymacdonald
c1e57fc05b
Merge pull request #122 from terrymacdonald/dependabot/nuget/develop/Autoupdater.NET.Official-1.7.3
Bump Autoupdater.NET.Official from 1.7.2 to 1.7.3
2022-06-15 21:57:11 +12:00
dependabot[bot]
db5fce8cec
Bump Autoupdater.NET.Official from 1.7.2 to 1.7.3
Bumps [Autoupdater.NET.Official](https://github.com/ravibpatel/AutoUpdater.NET) from 1.7.2 to 1.7.3.
- [Release notes](https://github.com/ravibpatel/AutoUpdater.NET/releases)
- [Commits](https://github.com/ravibpatel/AutoUpdater.NET/compare/v1.7.2...v1.7.3)

---
updated-dependencies:
- dependency-name: Autoupdater.NET.Official
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-14 08:55:05 +00:00
Terry MacDonald
bf2f95a992 Merge branch 'develop' of https://github.com/terrymacdonald/DisplayMagician into develop 2022-06-13 23:49:12 +12:00
Terry MacDonald
9ec7a46932 Added network check for autoupdate
Only runs autoupdate if there is an available network connection. Adds feature #120.
2022-06-13 23:48:57 +12:00
terrymacdonald
8827f8a823
Merge pull request #121 from terrymacdonald/dependabot/nuget/develop/NLog-5.0.1
Bump NLog from 5.0.0 to 5.0.1
2022-06-13 21:30:28 +12:00
dependabot[bot]
8866334a8f
Bump NLog from 5.0.0 to 5.0.1
Bumps [NLog](https://github.com/NLog/NLog) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/NLog/NLog/releases)
- [Changelog](https://github.com/NLog/NLog/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/NLog/NLog/compare/v5.0...v5.0.1)

---
updated-dependencies:
- dependency-name: NLog
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-13 08:29:52 +00:00
Terry MacDonald
2d2cbcbe90 Updated WInLibrary and TaskBarLayout to latest versions
This change adds validation and additional checks to TaskBarLayout. Adds some extra logging to WinLibrary.
2022-06-12 22:04:05 +12:00
Terry MacDonald
cb43f74629 Fixed potential bug with window taskbar location during screen generation
There is a possibility that there are two displays with the same UID. This happens with software created displays such as SpaceDesk and Superdisplay. This means that we need to try and figure out which screen is the right screen, and then when we know which screen we were really wanting to
2022-06-10 18:52:26 +12:00
Terry MacDonald
d98730a9b2 Fixed exception in RemoveProfile function 2022-06-10 17:34:56 +12:00
Terry MacDonald
6f4f42e94d Merge branch 'develop' of https://github.com/terrymacdonald/DisplayMagician into develop 2022-06-10 17:30:20 +12:00
Terry MacDonald
47912cf2e4 Updated TaskBarLayout and WinLibrary to latest versions 2022-06-10 17:29:58 +12:00
terrymacdonald
0d584bae09
Merge pull request #118 from terrymacdonald/dependabot/nuget/develop/Autoupdater.NET.Official-1.7.2
Bump Autoupdater.NET.Official from 1.7.1 to 1.7.2
2022-06-10 10:27:30 +12:00
Terry MacDonald
7d17b5ae10 Fixed second CTD when changing from Surround to non-surround.
The NVIDIA Driver seems to not like any other SetTopoFlags except NONE. There is a CTD if anything is selected :(. So as a workaround I will leave send a NONE SetTopoFlag so DisplayMagician can work.

Also have updated the Display Profiles Window logic so that it repositions DisplayMagician in the center of the screen on the primary display. This has to be done when changing Display Profiles using the Apply Button, as the display coordinates change, and sometimes this results in the current position being off screen. This was causing confusion amongst users. But now just always moving to the middle of the primary screen I can always be sure that the UI is visible.
2022-06-09 22:56:07 +12:00
Terry MacDonald
97d9caf2af Fixed CTD in patchAdapterids
Error with PatchAdapterIds that caused a crash to desktop. Has now been fixed. Should fix #117 and #118
2022-06-09 22:25:37 +12:00
dependabot[bot]
2090f0ad40
Bump Autoupdater.NET.Official from 1.7.1 to 1.7.2
Bumps [Autoupdater.NET.Official](https://github.com/ravibpatel/AutoUpdater.NET) from 1.7.1 to 1.7.2.
- [Release notes](https://github.com/ravibpatel/AutoUpdater.NET/releases)
- [Commits](https://github.com/ravibpatel/AutoUpdater.NET/compare/v1.7.1...v1.7.2)

---
updated-dependencies:
- dependency-name: Autoupdater.NET.Official
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-07 08:35:47 +00:00
Terry MacDonald
05e0fa647e Updated with Depndabot patches 2022-06-04 21:15:23 +12:00
Terry MacDonald
8d3bf254fb Merge branch 'develop' 2022-06-04 21:12:28 +12:00
Terry MacDonald
4ce83144d6 Built a testversion 2022-06-04 21:11:51 +12:00
Terry MacDonald
dab58a5a2b Updated WinLibrary to the latest version.
Fixes #114
2022-06-04 09:52:27 +12:00
Terry MacDonald
77188ddb6d Saved build information 2022-06-03 21:49:39 +12:00
Terry MacDonald
aede23a83d Updated NVIDIALibrary and WinLibrary to handle win display reordering
NVIDIALibrary and WinLibrary were too rigid in their equality testing, which meant that there was a problem when Windows reordered the displays in the path. This happens randomly when changing to cloned displays, and after a reboot. This would muck up the equality testing, which would prevent users selecting the display profiles. This has now been corrected (as far as we can tell so far).

There is a slight chance that further testing may find other parts of the Windows Display Config that randomly change and need to be updated. Thanks Microsoft.
2022-06-03 21:47:33 +12:00
Terry MacDonald
aee177ecb7 Added upgrading logic for Display Profiles to 2.4
DM will now warn users they will need to recreate their Display Profiles again. I really hope this is the last time I have to do this to my lovely users.
2022-06-03 21:43:30 +12:00
Terry MacDonald
1c10f3a743 Added DisplayMagicianVersion to the ProgramSettings
This will make it easier to update future versions of DisplayMagician, as I will know what it was upgraded from earlier.
2022-06-03 21:33:08 +12:00
terrymacdonald
0a8605f559
Merge pull request #115 from terrymacdonald/dependabot/nuget/develop/Autoupdater.NET.Official-1.7.1
Bump Autoupdater.NET.Official from 1.7.0 to 1.7.1
2022-06-02 20:29:36 +12:00
Terry MacDonald
6e82557ec6 Removed some uneeded variables from AMDLibrary 2022-06-02 20:18:02 +12:00
Terry MacDonald
14827c69ad Updated version to v2.4.0.1
As there are some breaking changes this cannot be considered a hotfix, so it need to be a new minor version. So it is now v2.4.0.
2022-06-02 19:52:48 +12:00
Terry MacDonald
3fba28087c Made TaskBarLayout creation more robust
TaskBarLayout now catches exceptions recording the taskbar location and handles them properly. It will skip any screenss that it cannot access the taskbar information for. The Screen layout generator for NVIDIA, AMD and Windows have all been updated to handle having no taskbar layout information (it just assumes the taskbar is down the bottom of the screen).

Hopefully fixes #114
2022-06-02 19:51:07 +12:00
Terry MacDonald
56c2410d85 Updated WinLibrary so it patches adapter IDs accurately
This was a major error that somehow slipped through previous work. WinLibrary was only partially patching the Windows Display Config when it was being loaded, and that resulted in some parts  of the Windows Display Config not working after a windows reboot. This should now be fixed!

Fixes #103
2022-06-02 18:14:51 +12:00
dependabot[bot]
4e48f3d907
Bump Autoupdater.NET.Official from 1.7.0 to 1.7.1
Bumps [Autoupdater.NET.Official](https://github.com/ravibpatel/AutoUpdater.NET) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/ravibpatel/AutoUpdater.NET/releases)
- [Commits](https://github.com/ravibpatel/AutoUpdater.NET/compare/v1.7.0...v1.7.1)

---
updated-dependencies:
- dependency-name: Autoupdater.NET.Official
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-01 10:10:56 +00:00
Terry MacDonald
b7395020cf Updated build. 2022-05-31 21:32:28 +12:00
Terry MacDonald
5faa2e919b Fixed Game Shortcut system tray menu all greyed out on startup
Problem was the MainForm needed to be started after the games were loaded in the background.
2022-05-31 21:11:35 +12:00
Terry MacDonald
a318dc64f2 Adding WIndows DPI Scaling config patching for DisplayMagician
IMPORTANT: This patching means that DisplayMagician is able to use your existing Display Profiles, but there is a catch! DisplayMagician won't be able to detect that your old profiles are currently in use... in other words DisplayMagician will constantly think that you have a new Display Profile until you save a copy of the DisplayProfile again.

This occurs because DisplayMagician now gets and compares the NVIDIA 3D Settings and there is no way for us to figure out what previous 3D settings were in use when you set up previous display profiles. For that reason we'll just need you to save new Display Profiles.
2022-05-31 20:55:48 +12:00
Terry MacDonald
340387dcc4 Updated WinLibrary, NVIDIALibrary and AMDLIbrary to latest versions
Updated video libraries to v1.7.5
2022-05-31 09:02:18 +12:00
Terry MacDonald
a93c9e62d2 Added Windows per source DPI scaling settings 2022-05-30 10:01:43 +12:00
Terry MacDonald
f40640ccbd Updated UpdateActiveConfig 2022-05-29 21:16:55 +12:00
Terry MacDonald
567c9b7af2 Reduced the displayid calls for profile comparison 2022-05-29 21:01:08 +12:00
Terry MacDonald
f6b1eed990 Fixed ProgramSetting loading and use
There was a flaw in the way that ProgramSettings was being used that meant there was a lot of reloading and saving going on which was unnecessary. Additionally there were some errors in the way that the Settings file was upgraded which mean that the old settings were keeping on getting overwritten. Fixes #104.
2022-05-28 21:09:53 +12:00
Terry MacDonald
9a886190dd Merge branch 'develop' of https://github.com/terrymacdonald/DisplayMagician into develop 2022-05-28 19:41:21 +12:00
Terry MacDonald
70e0765a59 Added WorkingDirectory to ProcessStartInfo
By adding working directory to the ProcessStartInfo, it should hopefully mean that software that looks for config files in the same directory as the executable should work now. Should fix #112.
2022-05-28 19:40:49 +12:00
terrymacdonald
621cac8cb2
Merge pull request #106 from terrymacdonald/dependabot/nuget/develop/protobuf-net-3.1.4
Bump protobuf-net from 3.1.0 to 3.1.4
2022-05-27 15:16:25 +12:00