jbhook2 and jbhook3 gfx updates

- Fix jbhook3 window mode
- Remove -f option for framed window, no value
- Add -s option to show mouse cursor on window
This commit is contained in:
95c6cd771e00602e3ec82fccba1b3741fdb7f7ca
2022-05-13 19:26:00 +00:00
committed by icex2
parent 721897d7b0
commit 28633ded37
9 changed files with 113 additions and 19 deletions
+4
View File
@@ -199,6 +199,10 @@ static HWND CDECL my_mwindow_create(
window_height = tmp;
}
if(options.show_cursor) {
ShowCursor(TRUE);
}
fullscreen = !options.windowed;
return real_mwindow_create(
+8 -7
View File
@@ -34,10 +34,10 @@ void options_init_from_cmdline(struct options *options)
void options_init(struct options *options)
{
options->windowed = false;
options->window_framed = false;
options->disable_p3ioemu = false;
options->disable_cardemu = false;
options->disable_adapteremu = false;
options->show_cursor = false;
}
bool options_read_cmdline(struct options *options, int argc, const char **argv)
@@ -60,11 +60,6 @@ bool options_read_cmdline(struct options *options, int argc, const char **argv)
break;
}
case 'f': {
options->window_framed = true;
break;
}
case 'v': {
options->vertical = true;
break;
@@ -84,6 +79,11 @@ bool options_read_cmdline(struct options *options, int argc, const char **argv)
options->disable_p3ioemu = true;
break;
}
case 's': {
options->show_cursor = true;
break;
}
}
}
@@ -106,7 +106,8 @@ void options_print_usage(void)
" -c Disable card emulation (e.g. when running on a "
"real cab)\n"
" -p Disable p3io emulation (e.g. when running on a "
"real cab)\n");
"real cab)\n"
" -s Show mouse cursor on game window\n");
}
void options_fini(struct options *options)
+1 -1
View File
@@ -6,11 +6,11 @@
struct options {
bool windowed;
bool window_framed;
bool vertical;
bool disable_p3ioemu;
bool disable_cardemu;
bool disable_adapteremu;
bool show_cursor;
};
void options_init_from_cmdline(struct options *options);