mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-18 22:51:39 +00:00
Do not enter testing mode if a valid mode is not selected.
- It doesn't make much sense to "test" the current mode if a non-video mode is selected in the menu, so don't.
This commit is contained in:
parent
e3741c8097
commit
75535fba72
1 changed files with 12 additions and 9 deletions
|
@ -166,6 +166,8 @@ public:
|
|||
NewWidth = SCREENWIDTH;
|
||||
NewHeight = SCREENHEIGHT;
|
||||
}
|
||||
else
|
||||
{
|
||||
OldWidth = SCREENWIDTH;
|
||||
OldHeight = SCREENHEIGHT;
|
||||
OldBits = DisplayBits;
|
||||
|
@ -176,6 +178,7 @@ public:
|
|||
SetModesMenu (NewWidth, NewHeight, NewBits);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return Super::Responder(ev);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue