summaryrefslogtreecommitdiff
path: root/blastem.c
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-07-17 22:26:11 -0700
committerMike Pavone <pavone@retrodev.com>2013-07-17 22:26:11 -0700
commitb94c9fd1cd3731c9a0bdcabcb15e7bead85021dc (patch)
treec8728e73773862cf1314e59b540f84369af8c681 /blastem.c
parent1482ef3c532eca86baf1d81a02822ff0962cedf8 (diff)
Add fullscreen support and add a keybinding for exiting the emulator
Diffstat (limited to 'blastem.c')
-rw-r--r--blastem.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/blastem.c b/blastem.c
index 0e5e547..d5d8720 100644
--- a/blastem.c
+++ b/blastem.c
@@ -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;