Select Display Adapter over Display Menu

Moderator: GZDoom Developers

Post Reply
User avatar
ibm5155
Posts: 1268
Joined: Wed Jul 20, 2011 4:24 pm
Contact:

Select Display Adapter over Display Menu

Post by ibm5155 »

No more need to use console command to select witch display should gzdoom being displayed.
Instead, the user could just go to options, vídeo options and select the display he wants to use
User avatar
Xeotroid
Posts: 448
Joined: Sat Jun 23, 2012 7:44 am
Graphics Processor: nVidia with Vulkan support
Location: Czech Rep.

Re: Select Display Adapter over Display Menu

Post by Xeotroid »

Good idea. Even though I use my primary display for gaming (so I usually don't have to change anything), this can be of use for other people.
User avatar
ibm5155
Posts: 1268
Joined: Wed Jul 20, 2011 4:24 pm
Contact:

Re: Select Display Adapter over Display Menu

Post by ibm5155 »

That was actually an easy change :o, I even did the change by myself.
I wanted to make a better solution, because this way gzdoom doesn't know how many adapters are in, but, I belive 9 is enough for anyone
Attachments
menudef.txt
Modified Menudef
(47.69 KiB) Downloaded 52 times
User avatar
jpalomo
Posts: 772
Joined: Mon May 17, 2010 9:45 am

Re: Select Display Adapter over Display Menu

Post by jpalomo »

Something like this is going to need more than an entry in the menu. As far as I remember, vid_adapter doesn't have any effect until you restart (or use a command line to set it on startup).
User avatar
ibm5155
Posts: 1268
Joined: Wed Jul 20, 2011 4:24 pm
Contact:

Re: Select Display Adapter over Display Menu

Post by ibm5155 »

Indeed, it's not perfect, the cvar "vid_adapter" only changes when you change the resolution or changes from windowed to fullscreen.
I think the way menudefs Works, there's no way to do that (unless there's a way to run complex codes like if("fullscreen" == "Yes") { // change from windowed then full screen} )
OR, the cvar call needs to be changed, when calling the cvar vid_adapter, check if it's fullscreen, if it's fullscreen, do something for refresh the selected window.
That second option is more complex, but I'll give a try if I can do that

EDIT: Example code here http://forum.zdoom.org/viewtopic.php?f=34&t=50182
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: Select Display Adapter over Display Menu

Post by Xaser »

I'd like to see this -- while true that vid_adapter in particular requires a restart, a "You must restart to apply these settings" message is pretty common in games and is better than having to use the console/config manually.

Though at that point it's a matter of MENUDEF feature implementation. :P
User avatar
Xeotroid
Posts: 448
Joined: Sat Jun 23, 2012 7:44 am
Graphics Processor: nVidia with Vulkan support
Location: Czech Rep.

Re: Select Display Adapter over Display Menu

Post by Xeotroid »

I was wondering, isn't it better to use Borderless Gaming (or some other borderless window tool) and use it when the game is windowed on the monitor of your choice? Unless you really want to use fullscreen mode, but I don't see a reason for that.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”