DarthAffe / ScreenCapture.NET

Fast and easy to use screen-capturing
GNU Lesser General Public License v2.1
60 stars 10 forks source link

Display collection not refreshing on display settings change #1

Closed Cheerpipe closed 3 years ago

Cheerpipe commented 3 years ago

If display mode is changed, public IEnumerable GetDisplays(GraphicsCard graphicsCard) won't return updated list.

https://docs.microsoft.com/en-us/windows/win32/api/dxgi/nf-dxgi-idxgifactory1-enumadapters1

When you create a factory, the factory enumerates the set of adapters that are available in the system. Therefore, if you change the adapters in a system, you must destroy and recreate the IDXGIFactory1 object. The number of adapters in a system changes when you add or remove a display card, or dock or undock a laptop.

Not sure if this issue should be here or in the artemis ambilight plugin git.

Cheerpipe commented 3 years ago

Closed as i reported this in Artemis plugin repo.