summaryrefslogtreecommitdiff
path: root/util-linux/fbset.c
diff options
context:
space:
mode:
authorEric Andersen2000-07-06 17:23:23 +0000
committerEric Andersen2000-07-06 17:23:23 +0000
commitc8c10c57159db40ec34f03652ef8ab96c1848ab6 (patch)
tree19f2c18c5167a38534b65b5c3e894ac10bd294d0 /util-linux/fbset.c
parentf86aee74ce995369a15bfa845d60376a8fc15279 (diff)
downloadbusybox-c8c10c57159db40ec34f03652ef8ab96c1848ab6.zip
busybox-c8c10c57159db40ec34f03652ef8ab96c1848ab6.tar.gz
Added (fixed) the '-n' option to fbset. Renumbered the command parameters to
put a gap between the normal commands and the fancy commands. This makes it cleaner to add normal commands. Patch from Jon McClintock <jonm@bluemug.com>. -Erik
Diffstat (limited to 'util-linux/fbset.c')
-rw-r--r--util-linux/fbset.c45
1 files changed, 25 insertions, 20 deletions
diff --git a/util-linux/fbset.c b/util-linux/fbset.c
index 0a84dce..6b6b84c 100644
--- a/util-linux/fbset.c
+++ b/util-linux/fbset.c
@@ -61,28 +61,29 @@
/* #define CMD_XCOMPAT 10 */
#define CMD_ALL 11
#define CMD_INFO 12
+#define CMD_CHANGE 13
#ifdef BB_FEATURE_FBSET_FANCY
-#define CMD_XRES 13
-#define CMD_YRES 14
-#define CMD_VXRES 15
-#define CMD_VYRES 16
-#define CMD_DEPTH 17
-#define CMD_MATCH 18
-#define CMD_PIXCLOCK 19
-#define CMD_LEFT 20
-#define CMD_RIGHT 21
-#define CMD_UPPER 22
-#define CMD_LOWER 23
-#define CMD_HSLEN 24
-#define CMD_VSLEN 25
-#define CMD_CSYNC 26
-#define CMD_GSYNC 27
-#define CMD_EXTSYNC 28
-#define CMD_BCAST 29
-#define CMD_RGBA 30
-#define CMD_STEP 31
-#define CMD_MOVE 32
+#define CMD_XRES 100
+#define CMD_YRES 101
+#define CMD_VXRES 102
+#define CMD_VYRES 103
+#define CMD_DEPTH 104
+#define CMD_MATCH 105
+#define CMD_PIXCLOCK 106
+#define CMD_LEFT 107
+#define CMD_RIGHT 108
+#define CMD_UPPER 109
+#define CMD_LOWER 110
+#define CMD_HSLEN 111
+#define CMD_VSLEN 112
+#define CMD_CSYNC 113
+#define CMD_GSYNC 114
+#define CMD_EXTSYNC 115
+#define CMD_BCAST 116
+#define CMD_RGBA 117
+#define CMD_STEP 118
+#define CMD_MOVE 119
#endif
static unsigned int g_options = 0;
@@ -106,6 +107,7 @@ struct cmdoptions_t {
"-laced", 1, CMD_LACED}, {
"-double", 1, CMD_DOUBLE}, {
"-help", 0, CMD_HELP}, {
+ "-n", 0, CMD_CHANGE}, {
#ifdef BB_FEATURE_FBSET_FANCY
"-help", 0, CMD_HELP}, {
"-all", 0, CMD_ALL}, {
@@ -286,6 +288,9 @@ extern int fbset_main(int argc, char **argv)
varset.hsync_len = strtoul(argv[6], 0, 0);
varset.vsync_len = strtoul(argv[7], 0, 0);
break;
+ case CMD_CHANGE:
+ g_options |= OPT_CHANGE;
+ break;
#ifdef BB_FEATURE_FBSET_FANCY
case CMD_XRES:
varset.xres = strtoul(argv[1], 0, 0);