Merge with develop

This commit is contained in:
Nimetu 2016-07-07 01:01:00 +03:00
parent 391706c1d8
commit 2ce1a63026

View file

@ -3450,21 +3450,9 @@ class CHandlerGameConfigApply : public IActionHandler
{ {
uint32 width, height; uint32 width, height;
Driver->getWindowSize(width, height); Driver->getWindowSize(width, height);
// window is too large
if (width >= screenMode.Width || height >= screenMode.Height)
{
// choose a smaller size
w = 1024;
h = 768;
}
else
{
// take previous mode
w = width; w = width;
h = height; h = height;
} }
}
ClientCfg.Width = w; ClientCfg.Width = w;
ClientCfg.Height = h; ClientCfg.Height = h;