Commit b2d45e30 authored by Gerhard Stein's avatar Gerhard Stein

Merge branch 'display/size' into 'master'

Make Display/Size setting effective

See merge request !348
parents f5635bcb d2ab85f5
......@@ -174,6 +174,18 @@ void DisplaySettings::release()
}
}
{
const std::string resStr = mpResolutionSelection->getSelection();
int w, h;
const int numRead = sscanf(resStr.c_str(),"%ix%i", &w, &h);
std::cerr << "numRead: " << numRead << std::endl;
if(numRead == 2)
{
GsRect<Uint16> res(w, h);
mUsersConf.setResolution(res);
}
}
// In case the user changed something in the camera settings, reload that.
mUsersConf.m_CameraBounds = gVideoDriver.getCameraBounds();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment