by ibm5155 » Sat Dec 19, 2015 2:52 pm
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
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