aboutsummaryrefslogtreecommitdiff
path: root/util-linux/fbset.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-08-13 10:36:25 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-08-13 10:36:25 +0000
commite324184c0509cc0db168ce29546e1b52800a79c6 (patch)
tree9d4f18b3cc1ab715b6ff91cc9e3e942d11dfc51f /util-linux/fbset.c
parent5f1b149d541ebba7cab841cb647f113248f9fb8f (diff)
downloadbusybox-w32-e324184c0509cc0db168ce29546e1b52800a79c6.tar.gz
busybox-w32-e324184c0509cc0db168ce29546e1b52800a79c6.tar.bz2
busybox-w32-e324184c0509cc0db168ce29546e1b52800a79c6.zip
s/#ifdef CONFIG_/#if ENABLE_/g
Diffstat (limited to 'util-linux/fbset.c')
-rw-r--r--util-linux/fbset.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/util-linux/fbset.c b/util-linux/fbset.c
index 69986df25..a2b8b3800 100644
--- a/util-linux/fbset.c
+++ b/util-linux/fbset.c
@@ -37,7 +37,7 @@ enum {
37 CMD_INFO = 12, 37 CMD_INFO = 12,
38 CMD_CHANGE = 13, 38 CMD_CHANGE = 13,
39 39
40#ifdef CONFIG_FEATURE_FBSET_FANCY 40#if ENABLE_FEATURE_FBSET_FANCY
41 CMD_XRES = 100, 41 CMD_XRES = 100,
42 CMD_YRES = 101, 42 CMD_YRES = 101,
43 CMD_VXRES = 102, 43 CMD_VXRES = 102,
@@ -130,7 +130,7 @@ static const struct cmdoptions_t {
130 { "-laced", 1, CMD_LACED }, 130 { "-laced", 1, CMD_LACED },
131 { "-double", 1, CMD_DOUBLE }, 131 { "-double", 1, CMD_DOUBLE },
132 { "-n", 0, CMD_CHANGE }, 132 { "-n", 0, CMD_CHANGE },
133#ifdef CONFIG_FEATURE_FBSET_FANCY 133#if ENABLE_FEATURE_FBSET_FANCY
134 { "-all", 0, CMD_ALL }, 134 { "-all", 0, CMD_ALL },
135 { "-xres", 1, CMD_XRES }, 135 { "-xres", 1, CMD_XRES },
136 { "-yres", 1, CMD_YRES }, 136 { "-yres", 1, CMD_YRES },
@@ -158,7 +158,7 @@ static const struct cmdoptions_t {
158 { "", 0, 0 } 158 { "", 0, 0 }
159}; 159};
160 160
161#ifdef CONFIG_FEATURE_FBSET_READMODE 161#if ENABLE_FEATURE_FBSET_READMODE
162/* taken from linux/fb.h */ 162/* taken from linux/fb.h */
163enum { 163enum {
164 FB_VMODE_INTERLACED = 1, /* interlaced */ 164 FB_VMODE_INTERLACED = 1, /* interlaced */
@@ -173,7 +173,7 @@ enum {
173static int readmode(struct fb_var_screeninfo *base, const char *fn, 173static int readmode(struct fb_var_screeninfo *base, const char *fn,
174 const char *mode) 174 const char *mode)
175{ 175{
176#ifdef CONFIG_FEATURE_FBSET_READMODE 176#if ENABLE_FEATURE_FBSET_READMODE
177 FILE *f; 177 FILE *f;
178 char buf[256]; 178 char buf[256];
179 char *p = buf; 179 char *p = buf;
@@ -286,7 +286,7 @@ static inline void showmode(struct fb_var_screeninfo *v)
286 vrate = hrate / (v->upper_margin + v->yres + v->lower_margin + v->vsync_len); 286 vrate = hrate / (v->upper_margin + v->yres + v->lower_margin + v->vsync_len);
287 } 287 }
288 printf("\nmode \"%ux%u-%u\"\n" 288 printf("\nmode \"%ux%u-%u\"\n"
289#ifdef CONFIG_FEATURE_FBSET_FANCY 289#if ENABLE_FEATURE_FBSET_FANCY
290 "\t# D: %.3f MHz, H: %.3f kHz, V: %.3f Hz\n" 290 "\t# D: %.3f MHz, H: %.3f kHz, V: %.3f Hz\n"
291#endif 291#endif
292 "\tgeometry %u %u %u %u %u\n" 292 "\tgeometry %u %u %u %u %u\n"
@@ -295,7 +295,7 @@ static inline void showmode(struct fb_var_screeninfo *v)
295 "\trgba %u/%u,%u/%u,%u/%u,%u/%u\n" 295 "\trgba %u/%u,%u/%u,%u/%u,%u/%u\n"
296 "endmode\n\n", 296 "endmode\n\n",
297 v->xres, v->yres, (int) (vrate + 0.5), 297 v->xres, v->yres, (int) (vrate + 0.5),
298#ifdef CONFIG_FEATURE_FBSET_FANCY 298#if ENABLE_FEATURE_FBSET_FANCY
299 drate / 1e6, hrate / 1e3, vrate, 299 drate / 1e6, hrate / 1e3, vrate,
300#endif 300#endif
301 v->xres, v->yres, v->xres_virtual, v->yres_virtual, v->bits_per_pixel, 301 v->xres, v->yres, v->xres_virtual, v->yres_virtual, v->bits_per_pixel,
@@ -360,7 +360,7 @@ int fbset_main(int argc, char **argv)
360 case CMD_CHANGE: 360 case CMD_CHANGE:
361 g_options |= OPT_CHANGE; 361 g_options |= OPT_CHANGE;
362 break; 362 break;
363#ifdef CONFIG_FEATURE_FBSET_FANCY 363#if ENABLE_FEATURE_FBSET_FANCY
364 case CMD_XRES: 364 case CMD_XRES:
365 varset.xres = xatou32(argv[1]); 365 varset.xres = xatou32(argv[1]);
366 break; 366 break;