summaryrefslogtreecommitdiff
path: root/util-linux/fbset.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-10-24 05:00:29 +0000
committerEric Andersen <andersen@codepoet.org>2001-10-24 05:00:29 +0000
commitbdfd0d78bc44e73d693510e70087857785b3b521 (patch)
tree153a573095afac8d8d0ea857759ecabd77fb28b7 /util-linux/fbset.c
parent9260fc5552a3ee52eb95823aa6689d52a1ffd33c (diff)
downloadbusybox-w32-bdfd0d78bc44e73d693510e70087857785b3b521.tar.gz
busybox-w32-bdfd0d78bc44e73d693510e70087857785b3b521.tar.bz2
busybox-w32-bdfd0d78bc44e73d693510e70087857785b3b521.zip
Major rework of the directory structure and the entire build system.
-Erik
Diffstat (limited to 'util-linux/fbset.c')
-rw-r--r--util-linux/fbset.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/util-linux/fbset.c b/util-linux/fbset.c
index 5ccd80e79..2a959c21c 100644
--- a/util-linux/fbset.c
+++ b/util-linux/fbset.c
@@ -56,7 +56,7 @@ enum {
56 CMD_INFO = 12, 56 CMD_INFO = 12,
57 CMD_CHANGE = 13, 57 CMD_CHANGE = 13,
58 58
59#ifdef BB_FEATURE_FBSET_FANCY 59#ifdef CONFIG_FEATURE_FBSET_FANCY
60 CMD_XRES = 100, 60 CMD_XRES = 100,
61 CMD_YRES = 101, 61 CMD_YRES = 101,
62 CMD_VXRES = 102, 62 CMD_VXRES = 102,
@@ -149,7 +149,7 @@ static struct cmdoptions_t {
149 "-laced", 1, CMD_LACED}, { 149 "-laced", 1, CMD_LACED}, {
150 "-double", 1, CMD_DOUBLE}, { 150 "-double", 1, CMD_DOUBLE}, {
151 "-n", 0, CMD_CHANGE}, { 151 "-n", 0, CMD_CHANGE}, {
152#ifdef BB_FEATURE_FBSET_FANCY 152#ifdef CONFIG_FEATURE_FBSET_FANCY
153 "-all", 0, CMD_ALL}, { 153 "-all", 0, CMD_ALL}, {
154 "-xres", 1, CMD_XRES}, { 154 "-xres", 1, CMD_XRES}, {
155 "-yres", 1, CMD_YRES}, { 155 "-yres", 1, CMD_YRES}, {
@@ -177,7 +177,7 @@ static struct cmdoptions_t {
177 0, 0, 0} 177 0, 0, 0}
178}; 178};
179 179
180#ifdef BB_FEATURE_FBSET_READMODE 180#ifdef CONFIG_FEATURE_FBSET_READMODE
181/* taken from linux/fb.h */ 181/* taken from linux/fb.h */
182static const int FB_VMODE_INTERLACED = 1; /* interlaced */ 182static const int FB_VMODE_INTERLACED = 1; /* interlaced */
183static const int FB_VMODE_DOUBLE = 2; /* double scan */ 183static const int FB_VMODE_DOUBLE = 2; /* double scan */
@@ -189,7 +189,7 @@ static const int FB_SYNC_COMP_HIGH_ACT = 8; /* composite sync high active */
189static int readmode(struct fb_var_screeninfo *base, const char *fn, 189static int readmode(struct fb_var_screeninfo *base, const char *fn,
190 const char *mode) 190 const char *mode)
191{ 191{
192#ifdef BB_FEATURE_FBSET_READMODE 192#ifdef CONFIG_FEATURE_FBSET_READMODE
193 FILE *f; 193 FILE *f;
194 char buf[256]; 194 char buf[256];
195 char *p = buf; 195 char *p = buf;
@@ -313,7 +313,7 @@ static void showmode(struct fb_var_screeninfo *v)
313 v->vsync_len); 313 v->vsync_len);
314 } 314 }
315 printf("\nmode \"%ux%u-%u\"\n", v->xres, v->yres, (int) (vrate + 0.5)); 315 printf("\nmode \"%ux%u-%u\"\n", v->xres, v->yres, (int) (vrate + 0.5));
316#ifdef BB_FEATURE_FBSET_FANCY 316#ifdef CONFIG_FEATURE_FBSET_FANCY
317 printf("\t# D: %.3f MHz, H: %.3f kHz, V: %.3f Hz\n", drate / 1e6, 317 printf("\t# D: %.3f MHz, H: %.3f kHz, V: %.3f Hz\n", drate / 1e6,
318 hrate / 1e3, vrate); 318 hrate / 1e3, vrate);
319#endif 319#endif
@@ -377,7 +377,7 @@ extern int fbset_main(int argc, char **argv)
377 case CMD_CHANGE: 377 case CMD_CHANGE:
378 g_options |= OPT_CHANGE; 378 g_options |= OPT_CHANGE;
379 break; 379 break;
380#ifdef BB_FEATURE_FBSET_FANCY 380#ifdef CONFIG_FEATURE_FBSET_FANCY
381 case CMD_XRES: 381 case CMD_XRES:
382 varset.xres = strtoul(argv[1], 0, 0); 382 varset.xres = strtoul(argv[1], 0, 0);
383 break; 383 break;