mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-26 16:56:19 +00:00
Merge with develop
This commit is contained in:
parent
391706c1d8
commit
2ce1a63026
1 changed files with 2 additions and 14 deletions
|
@ -3450,20 +3450,8 @@ class CHandlerGameConfigApply : public IActionHandler
|
||||||
{
|
{
|
||||||
uint32 width, height;
|
uint32 width, height;
|
||||||
Driver->getWindowSize(width, height);
|
Driver->getWindowSize(width, height);
|
||||||
|
w = width;
|
||||||
// window is too large
|
h = height;
|
||||||
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.Width = w;
|
||||||
|
|
Loading…
Reference in a new issue