diff options
author | Mike Pavone <pavone@retrodev.com> | 2013-07-17 22:26:11 -0700 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2013-07-17 22:26:11 -0700 |
commit | b94c9fd1cd3731c9a0bdcabcb15e7bead85021dc (patch) | |
tree | c8728e73773862cf1314e59b540f84369af8c681 /blastem.c | |
parent | 1482ef3c532eca86baf1d81a02822ff0962cedf8 (diff) |
Add fullscreen support and add a keybinding for exiting the emulator
Diffstat (limited to 'blastem.c')
-rw-r--r-- | blastem.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1907,6 +1907,7 @@ int main(int argc, char ** argv) 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 @@ int main(int argc, char ** argv) debug = 1; break; case 'f': - frame_limit = 1; + fullscreen = 1; break; case 'l': address_log = fopen("address.log", "w"); @@ -1988,7 +1989,7 @@ int main(int argc, char ** argv) fps = 50; } if (!headless) { - render_init(width, height, title, fps); + render_init(width, height, title, fps, fullscreen); } vdp_context v_context; |