From aa0706d8190735ae2b4e375c2f00ebdc8a5297d0 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Tue, 19 Sep 2023 07:50:12 +0200 Subject: [PATCH] add --netbook to options --- dist/x48ng.man.1 | 2 ++ src/runtime_options.c | 4 ++++ src/runtime_options.h | 1 + 3 files changed, 7 insertions(+) diff --git a/dist/x48ng.man.1 b/dist/x48ng.man.1 index 3b89a32..d27eca6 100644 --- a/dist/x48ng.man.1 +++ b/dist/x48ng.man.1 @@ -76,6 +76,8 @@ where options include: \-\-no\-chrome [SDL only] only display the LCD (default: false) .br \-\-fullscreen [SDL only] make the UI fullscreen (default: false) +.br + \-\-netbook [X11 only] make the UI horizontal (default: false) .br \-t \-\-use\-terminal activate pseudo terminal interface (default: true) .br diff --git a/src/runtime_options.c b/src/runtime_options.c index 48e56d6..38861f3 100644 --- a/src/runtime_options.c +++ b/src/runtime_options.c @@ -11,6 +11,7 @@ char* progname = "x48ng"; int verbose = 0; int show_ui_chrome = 1; int show_ui_fullscreen = 0; +int netbook = 0; int useTerminal = 1; int useSerial = 0; int useDebugger = 1; @@ -51,6 +52,7 @@ int parse_args( int argc, char* argv[] ) { { "verbose", no_argument, &verbose, 1 }, { "no-chrome", no_argument, &show_ui_chrome, 0 }, { "fullscreen", no_argument, &show_ui_fullscreen, 1 }, + { "netbook", no_argument, &netbook, 1 }, { "use-terminal", no_argument, &useTerminal, 1 }, { "use-serial", no_argument, &useSerial, 1 }, @@ -86,6 +88,8 @@ int parse_args( int argc, char* argv[] ) { "false)\n" "\t --fullscreen\t\t\t[SDL only] make the UI fullscreen (default: " "false)\n" + "\t --netbook\t\t\t[X11 only] make the UI horizontal (default: " + "false)\n" "\t-u --front-end\t\t\tspecify a front-end (available: x11, sdl; " "default: x11)\n" "\t-t --use-terminal\t\tactivate pseudo terminal interface (default: " diff --git a/src/runtime_options.h b/src/runtime_options.h index de38935..86c22a2 100644 --- a/src/runtime_options.h +++ b/src/runtime_options.h @@ -9,6 +9,7 @@ extern char* progname; extern int verbose; extern int show_ui_chrome; extern int show_ui_fullscreen; +extern int netbook; extern int useTerminal; extern int useSerial; extern int useDebugger;