Commit Graph

1111 Commits

Author SHA1 Message Date
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
terrymacdonald
9660b6937d
Merge pull request #107 from terrymacdonald/dependabot/nuget/develop/Microsoft.NET.Test.Sdk-17.2.0
Bump Microsoft.NET.Test.Sdk from 17.1.0 to 17.2.0
2022-05-27 15:16:14 +12:00
terrymacdonald
ae2bb768a5
Merge pull request #109 from terrymacdonald/dependabot/nuget/develop/NLog-5.0.0
Bump NLog from 4.7.15 to 5.0.0
2022-05-27 15:15:58 +12:00
Terry MacDonald
6d8da7f478 Handle empty Steam Libraries without breaking
Fixes #108.
2022-05-25 08:51:56 +12:00
Terry MacDonald
0e42a3aad3 Bugfix to stop high CPU usage. 2022-05-18 21:36:01 +12:00
dependabot[bot]
335250035c
Bump NLog from 4.7.15 to 5.0.0
Bumps [NLog](https://github.com/NLog/NLog) from 4.7.15 to 5.0.0.
- [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/v4.7.15...v5.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-17 08:27:33 +00:00
dependabot[bot]
1f94de1ebb
Bump Microsoft.NET.Test.Sdk from 17.1.0 to 17.2.0
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.1.0 to 17.2.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v17.1.0...v17.2.0)

---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-12 08:22:27 +00:00
dependabot[bot]
8c05438a21
Bump protobuf-net from 3.1.0 to 3.1.4
Bumps [protobuf-net](https://github.com/protobuf-net/protobuf-net) from 3.1.0 to 3.1.4.
- [Release notes](https://github.com/protobuf-net/protobuf-net/releases)
- [Changelog](https://github.com/protobuf-net/protobuf-net/blob/main/docs/releasenotes.md)
- [Commits](https://github.com/protobuf-net/protobuf-net/compare/3.1.0...3.1.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-11 08:32:05 +00:00
Terry MacDonald
b3bf040be7 New Build 2022-05-04 22:15:23 +12:00
Terry MacDonald
f1650c7a7d Added two settings to reduce the messages sent to the Windows Action Center
Adds feature #99.
2022-05-04 22:10:20 +12:00
Terry MacDonald
6be58e881f Merge branch 'develop' of https://github.com/terrymacdonald/DisplayMagician into develop 2022-05-04 21:24:09 +12:00
Terry MacDonald
86a4696084 Fixed Hotkey being left after profile and shortcut deleted
This set of changes removes the hotkeys so that they can be reused again without restarting DisplayMagician. Fixes #102.
2022-05-04 21:23:57 +12:00
terrymacdonald
5794cf9f47
Merge pull request #100 from terrymacdonald/dependabot/nuget/develop/protobuf-net-3.1.0
Bump protobuf-net from 3.0.101 to 3.1.0
2022-04-29 08:20:48 +12:00
dependabot[bot]
a32f454f9a
Bump protobuf-net from 3.0.101 to 3.1.0
Bumps [protobuf-net](https://github.com/protobuf-net/protobuf-net) from 3.0.101 to 3.1.0.
- [Release notes](https://github.com/protobuf-net/protobuf-net/releases)
- [Changelog](https://github.com/protobuf-net/protobuf-net/blob/main/docs/releasenotes.md)
- [Commits](https://github.com/protobuf-net/protobuf-net/commits/3.1.0)

---
updated-dependencies:
- dependency-name: protobuf-net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-25 08:32:54 +00:00
terrymacdonald
b00fe1b530
Update README.md 2022-04-22 08:35:45 +12:00
Terry MacDonald
8d58b89602 Updated some screenshots 2022-04-20 20:43:55 +12:00
Terry MacDonald
f8a9ca8e1e Added in partial DRS Setting support
This DRS Support is just reserving a space for the future addition of DRS Settings pulled from the driver. This will allow the recording of settings listed in the 3D Settings within the NVIDIA Control panel.
2022-04-20 20:35:51 +12:00
Terry MacDonald
9a745ea3e7 Adjusted mainform startup now we're singleinstance
Made some adjustments to when the MainForm is loaded, and how the NotifyIcon works for system tray.

Also Adjusted the way that the Windows Screens are computed so that we can reuse some of the code in AMD and NVIDIA screen generation so that the additional non-NVIDIA and non-AMD connected screens are still shown.
2022-04-20 17:39:34 +12:00
Terry MacDonald
a45fab4ee9 Fixed profile invalidity bug with RunShortcut from command.
When the RunShortcut command was run, sometimes the profile used in the shortcut would  incorrectly be shown to no be possible when it was in fact possible. This was due to a missing possibility profile refresh. This has now been added so the shortcuts run correctly from the desktoip shortcuts.
2022-04-19 22:20:04 +12:00