svkaiser / Doom64EX

Doom64EX is a reverse-engineering project aimed to recreate Doom64 as close as possible with additional modding features.
http://doom64ex.wordpress.com/
GNU General Public License v2.0
237 stars 49 forks source link

Video initialization takes into consideration multi-monitor setups #96

Open MiltosKoutsokeras opened 5 years ago

MiltosKoutsokeras commented 5 years ago

During Video initialization iterate all displays and use the string name value returned by SDL_GetDisplayName to identify them in the menu UI. Depending on the chosen display the created window is placed to the corresponding monitor and a new Cvar is introduced v_VideoDisplay with a an index value for every monitor, 0 = first monitor, 1 = second and so on.