ledoge / novideo_srgb

Calibrate monitors to sRGB or other color spaces on NVIDIA GPUs, based on EDID data or ICC profiles
GNU General Public License v3.0
986 stars 35 forks source link

Add ability to disable clamp automatically when specific program is running and some fixes #83

Open EtherealAO opened 9 months ago

EtherealAO commented 9 months ago

Add ability to disable clamp automatically when specific program is running Input executable file name(without extension) and split by \ (as it's not a valid character in file name), it will disable&re-enable automatically when program open/close/move to another monitor. Useful when using some well-color-managemented program like madvr

Update config instead of always overwrite to prevent losing configs Useful when temporary disconnect monitor and connect later, and useful for some odd monitors like Samsung Neo G8 (has different model between 120Hz mode and 240Hz mode)

Catch exceptions in OnDisplaySettingsChanged to prevent event doesn't work Occures when switching from sdr to hdr, it will throw exceptions like -104 or "elements in a collection was modified" and this event won't raise anymore,

Send refresh event to desktop to prevent greyed out It may be a bug that only occurs in multiple monitors configuration. The color is like a gamma with only 1, and require a click/refresh to recovery

Change error -104 to alert and only show once per launch It's a bit annoying

Not much debugging, but it looks okay