I wondered if it should be full screen, full-screen or fullscreen,
but VLC uses the option --fullscreen, and it's good to be consistent
with that.
Adapted from a patch by Yoann Dubreuil.
// Long options that have no corresponding short option.
enum LongOption {
OPTION_HELP = 1000,
// Long options that have no corresponding short option.
enum LongOption {
OPTION_HELP = 1000,
OPTION_MULTICHANNEL,
OPTION_MIDI_MAPPING,
OPTION_DEFAULT_HDMI_INPUT,
OPTION_MULTICHANNEL,
OPTION_MIDI_MAPPING,
OPTION_DEFAULT_HDMI_INPUT,
}
fprintf(stderr, "\n");
fprintf(stderr, " --help print usage information\n");
}
fprintf(stderr, "\n");
fprintf(stderr, " --help print usage information\n");
+ if (program == PROGRAM_NAGERU) {
+ fprintf(stderr, " --fullscreen run in full screen, with no decorations\n");
+ }
fprintf(stderr, " -w, --width output width in pixels (default 1280)\n");
fprintf(stderr, " -h, --height output height in pixels (default 720)\n");
if (program == PROGRAM_NAGERU) {
fprintf(stderr, " -w, --width output width in pixels (default 1280)\n");
fprintf(stderr, " -h, --height output height in pixels (default 720)\n");
if (program == PROGRAM_NAGERU) {
{
static const option long_options[] = {
{ "help", no_argument, 0, OPTION_HELP },
{
static const option long_options[] = {
{ "help", no_argument, 0, OPTION_HELP },
+ { "fullscreen", no_argument, 0, OPTION_FULLSCREEN },
{ "width", required_argument, 0, 'w' },
{ "height", required_argument, 0, 'h' },
{ "num-cards", required_argument, 0, 'c' },
{ "width", required_argument, 0, 'w' },
{ "height", required_argument, 0, 'h' },
{ "num-cards", required_argument, 0, 'c' },
global_flags.ycbcr_interpretation[card_num] = interpretation;
break;
}
global_flags.ycbcr_interpretation[card_num] = interpretation;
break;
}
+ case OPTION_FULLSCREEN:
+ global_flags.fullscreen = true;
+ break;
case OPTION_HELP:
usage(program);
exit(0);
case OPTION_HELP:
usage(program);
exit(0);
int x264_bit_depth = 8; // Not user-settable.
bool use_zerocopy = false; // Not user-settable.
bool can_disable_srgb_decoder = false; // Not user-settable.
int x264_bit_depth = 8; // Not user-settable.
bool use_zerocopy = false; // Not user-settable.
bool can_disable_srgb_decoder = false; // Not user-settable.
+ bool fullscreen = false;
};
extern Flags global_flags;
};
extern Flags global_flags;
}
midi_mapper.refresh_highlights();
midi_mapper.refresh_lights();
}
midi_mapper.refresh_highlights();
midi_mapper.refresh_lights();
+ if (global_flags.fullscreen) {
+ QMainWindow::showFullScreen();
+ }
}
void MainWindow::resizeEvent(QResizeEvent* event)
}
void MainWindow::resizeEvent(QResizeEvent* event)