Reply to thread

[USER=167880]@MrINTJ[/USER]  [USER=48495]@morpheus_xx[/USER] I have pushed changes to MP2-877_Improve_refresh_rate_changer_display_selection.

Previously we were assuming the ordering of Forms.AllScreens was equivalent to the ordering of the display info returned in QueryDisplayConfig in addition to the assumptions of the ordering of the mode infos pointed out above. I expect this assumption is generally true but not guaranteed as the results of QueryDisplayConfig can change when the screen configuration changes, whereas the Forms.AllScreens array is created once when first referenced and not updated after that. What I've done instead is use the DeviceName of the current forms screen, then this can be mapped to a device interface name through EnumDisplayDevices, then the path infos returned by QueryDisplayConfig can be matched against this interface name to get the correct mode index.


I don't have multiple monitors to test properly, and I'm no expert on Windows display configuration, so this could do with some review and testing :D


Top Bottom