FNA-XNA / FNA3D

FNA3D - 3D Graphics Library for FNA
http://fna-xna.github.io/
Other
287 stars 48 forks source link

Resolve DXGI_MODE_DESC on any adapter output that holds our window. #141

Closed bartwe closed 2 years ago

bartwe commented 2 years ago

Related to issue #140

uses the output that contains our whnd, or the primary monitor as the source of the information used to create the swapchain.

Also resolves an issue with mixing IDXGIAdapter1 and IDXGIAdapter

bartwe commented 2 years ago

I am wondering just slightly if we do not want to default to the original behavior, as picking the monitor that starts the application is about as arbitrary a source of settings as is the first monitor on the adapter..

flibitijibibo commented 2 years ago

Hypothetically we could pull the window's active monitor via SDL_syswm or something, but this does seem more precise and in most cases will end up on the same display anyhow.

In any case, this is now in fnalibs.