libsdl-org / sdl2-compat

An SDL2 compatibility layer that uses SDL3 behind the scenes.
zlib License
75 stars 17 forks source link

Fix ID/index mismatch in SDL_Direct3D9GetAdapterIndex() and SDL_DXGIGetOutputInfo() #152

Closed cgutman closed 6 months ago

cgutman commented 6 months ago

We can't just cast the display index to SDL_DisplayID. We have to use Display_IndexToID() to perform the proper conversion.