|
|
|
@ -59,10 +59,20 @@ void updateFromClientCfg()
|
|
|
|
|
)))
|
|
|
|
|
{
|
|
|
|
|
nldebug("Apply VR device change");
|
|
|
|
|
// detach display mode
|
|
|
|
|
if (StereoDisplay && StereoDisplayAttached)
|
|
|
|
|
StereoDisplay->detachFromDisplay();
|
|
|
|
|
StereoDisplayAttached = false;
|
|
|
|
|
// re-init
|
|
|
|
|
releaseStereoDisplayDevice();
|
|
|
|
|
initStereoDisplayDevice();
|
|
|
|
|
// try attach display mode
|
|
|
|
|
if (StereoDisplay)
|
|
|
|
|
StereoDisplay->attachToDisplay();
|
|
|
|
|
StereoDisplayAttached = StereoDisplay->attachToDisplay();
|
|
|
|
|
// set latest config display mode if not attached
|
|
|
|
|
if (!StereoDisplayAttached)
|
|
|
|
|
setVideoMode(UDriver::CMode(ClientCfg.Width, ClientCfg.Height, (uint8)ClientCfg.Depth,
|
|
|
|
|
ClientCfg.Windowed, ClientCfg.Frequency));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GRAPHICS - GENERAL
|
|
|
|
@ -73,7 +83,7 @@ void updateFromClientCfg()
|
|
|
|
|
(ClientCfg.Depth != LastClientCfg.Depth) ||
|
|
|
|
|
(ClientCfg.Frequency != LastClientCfg.Frequency))
|
|
|
|
|
{
|
|
|
|
|
if (!StereoDisplay) // TODO
|
|
|
|
|
if (!StereoDisplayAttached)
|
|
|
|
|
{
|
|
|
|
|
setVideoMode(UDriver::CMode(ClientCfg.Width, ClientCfg.Height, (uint8)ClientCfg.Depth,
|
|
|
|
|
ClientCfg.Windowed, ClientCfg.Frequency));
|
|
|
|
|