Mercurial > repos > blastem
diff blastem.c @ 444:cc754a309ead
Add fullscreen support and add a keybinding for exiting the emulator
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 17 Jul 2013 22:26:11 -0700 |
parents | f0631c85a90b |
children | 1e828ed04a7c |
line wrap: on
line diff
--- a/blastem.c Wed Jul 17 00:23:45 2013 -0700 +++ b/blastem.c Wed Jul 17 22:26:11 2013 -0700 @@ -1907,6 +1907,7 @@ int ym_log = 0; FILE *address_log = NULL; char * statefile = NULL; + uint8_t fullscreen = 0; for (int i = 2; i < argc; i++) { if (argv[i][0] == '-') { switch(argv[i][1]) { @@ -1914,7 +1915,7 @@ debug = 1; break; case 'f': - frame_limit = 1; + fullscreen = 1; break; case 'l': address_log = fopen("address.log", "w"); @@ -1988,7 +1989,7 @@ fps = 50; } if (!headless) { - render_init(width, height, title, fps); + render_init(width, height, title, fps, fullscreen); } vdp_context v_context;