fixed a bug switching too many times to fullscreen
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1434
This commit is contained in:
parent
c4269952c4
commit
81b197a1cb
1 changed files with 4 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: sdlmain.cpp,v 1.53 2003-11-08 10:09:52 harekiet Exp $ */
|
||||
/* $Id: sdlmain.cpp,v 1.54 2003-11-12 13:27:39 qbix79 Exp $ */
|
||||
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
|
@ -776,7 +776,9 @@ int main(int argc, char* argv[]) {
|
|||
}
|
||||
#endif
|
||||
if (control->cmdline->FindExist("-fullscreen") || sdl_sec->Get_bool("fullscreen")) {
|
||||
SwitchFullScreen();
|
||||
if(!sdl.desktop.fullscreen) { //only switch if not allready in fullscreen
|
||||
SwitchFullScreen();
|
||||
}
|
||||
}
|
||||
/* Start up main machine */
|
||||
control->StartUp();
|
||||
|
|
Loading…
Add table
Reference in a new issue