|
|
|
@ -3450,21 +3450,9 @@ class CHandlerGameConfigApply : public IActionHandler
|
|
|
|
|
{
|
|
|
|
|
uint32 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;
|
|
|
|
|
h = height;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ClientCfg.Width = w;
|
|
|
|
|
ClientCfg.Height = h;
|
|
|
|
|