diff options
author | Denis Vlasenko | 2007-08-13 10:36:25 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-08-13 10:36:25 +0000 |
commit | e324184c0509cc0db168ce29546e1b52800a79c6 (patch) | |
tree | 9d4f18b3cc1ab715b6ff91cc9e3e942d11dfc51f /util-linux/fbset.c | |
parent | 5f1b149d541ebba7cab841cb647f113248f9fb8f (diff) | |
download | busybox-e324184c0509cc0db168ce29546e1b52800a79c6.zip busybox-e324184c0509cc0db168ce29546e1b52800a79c6.tar.gz |
s/#ifdef CONFIG_/#if ENABLE_/g
Diffstat (limited to 'util-linux/fbset.c')
-rw-r--r-- | util-linux/fbset.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util-linux/fbset.c b/util-linux/fbset.c index 69986df..a2b8b38 100644 --- a/util-linux/fbset.c +++ b/util-linux/fbset.c @@ -37,7 +37,7 @@ enum { CMD_INFO = 12, CMD_CHANGE = 13, -#ifdef CONFIG_FEATURE_FBSET_FANCY +#if ENABLE_FEATURE_FBSET_FANCY CMD_XRES = 100, CMD_YRES = 101, CMD_VXRES = 102, @@ -130,7 +130,7 @@ static const struct cmdoptions_t { { "-laced", 1, CMD_LACED }, { "-double", 1, CMD_DOUBLE }, { "-n", 0, CMD_CHANGE }, -#ifdef CONFIG_FEATURE_FBSET_FANCY +#if ENABLE_FEATURE_FBSET_FANCY { "-all", 0, CMD_ALL }, { "-xres", 1, CMD_XRES }, { "-yres", 1, CMD_YRES }, @@ -158,7 +158,7 @@ static const struct cmdoptions_t { { "", 0, 0 } }; -#ifdef CONFIG_FEATURE_FBSET_READMODE +#if ENABLE_FEATURE_FBSET_READMODE /* taken from linux/fb.h */ enum { FB_VMODE_INTERLACED = 1, /* interlaced */ @@ -173,7 +173,7 @@ enum { static int readmode(struct fb_var_screeninfo *base, const char *fn, const char *mode) { -#ifdef CONFIG_FEATURE_FBSET_READMODE +#if ENABLE_FEATURE_FBSET_READMODE FILE *f; char buf[256]; char *p = buf; @@ -286,7 +286,7 @@ static inline void showmode(struct fb_var_screeninfo *v) vrate = hrate / (v->upper_margin + v->yres + v->lower_margin + v->vsync_len); } printf("\nmode \"%ux%u-%u\"\n" -#ifdef CONFIG_FEATURE_FBSET_FANCY +#if ENABLE_FEATURE_FBSET_FANCY "\t# D: %.3f MHz, H: %.3f kHz, V: %.3f Hz\n" #endif "\tgeometry %u %u %u %u %u\n" @@ -295,7 +295,7 @@ static inline void showmode(struct fb_var_screeninfo *v) "\trgba %u/%u,%u/%u,%u/%u,%u/%u\n" "endmode\n\n", v->xres, v->yres, (int) (vrate + 0.5), -#ifdef CONFIG_FEATURE_FBSET_FANCY +#if ENABLE_FEATURE_FBSET_FANCY drate / 1e6, hrate / 1e3, vrate, #endif 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) case CMD_CHANGE: g_options |= OPT_CHANGE; break; -#ifdef CONFIG_FEATURE_FBSET_FANCY +#if ENABLE_FEATURE_FBSET_FANCY case CMD_XRES: varset.xres = xatou32(argv[1]); break; |