mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
6add0822fb
This tweak fixes the equality testing so that it works reliably with rotated displays. It turns out that the NVIDIA driver doesn't set the TVFormat option reliably whenever it rotates a display. During testing I've had the TvFormat option set to 557 and 320 for the exact same nonitor, and it really seems to depend on what the driver decided it wanted to set (the landscape mode is always 555). I expect that it is due to the portrait sizes not being 'standard' TV sizes, so it is trying to find the best match, but in any case the variation in this setting doesn't appear to affect us using the profile... it only affects the equality tests uses to check if a particular profile is in use. For this reason I've excluded the TvFormat from the equality testing so that the variation caused by the driver doesn't break the Equals check. |
||
---|---|---|
.. | ||
AMD | ||
NVIDIA | ||
Properties | ||
Resources | ||
UserControls | ||
Windows | ||
DisplayMagician.ico | ||
DisplayMagicianShared.csproj | ||
DisplayMagicianStartupAction.cs | ||
ExtensionMethods.cs | ||
PixelShift.cs | ||
ProfileIcon.cs | ||
ProfileItem.cs | ||
ProfileRepository.cs | ||
ResizeDrawing.cs | ||
RestartManagerSession.cs | ||
Rotation.cs | ||
Scaling.cs | ||
ScanLineOrdering.cs | ||
SharedLogger.cs | ||
ShellHelper.cs | ||
Utils.cs | ||
Wallpaper.cs |