mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
Changed: Allow windowed mode to span over multiple desktops
This commit is contained in:
parent
16c0314701
commit
0d4bbaf373
1 changed files with 2 additions and 14 deletions
|
@ -3450,20 +3450,8 @@ 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;
|
||||
}
|
||||
w = width;
|
||||
h = height;
|
||||
}
|
||||
|
||||
ClientCfg.Width = w;
|
||||
|
|
Loading…
Reference in a new issue