summaryrefslogtreecommitdiff
path: root/miscutils/fbsplash.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-04-22 00:16:29 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-04-22 00:16:29 +0000
commit1f228985b27602f94ff973d50e276220887df6a3 (patch)
tree5715edba638603b3815dc8700c88c2c0395b2b16 /miscutils/fbsplash.c
parent5d89fbaa2e00a8a26e530306d76b78bf91d12ec8 (diff)
downloadbusybox-w32-1f228985b27602f94ff973d50e276220887df6a3.tar.gz
busybox-w32-1f228985b27602f94ff973d50e276220887df6a3.tar.bz2
busybox-w32-1f228985b27602f94ff973d50e276220887df6a3.zip
whitespace fixes. no code changes
Diffstat (limited to 'miscutils/fbsplash.c')
-rw-r--r--miscutils/fbsplash.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/miscutils/fbsplash.c b/miscutils/fbsplash.c
index a288b3ca5..626cefb28 100644
--- a/miscutils/fbsplash.c
+++ b/miscutils/fbsplash.c
@@ -9,11 +9,11 @@
9 * - use kernel option 'vga=xxx' or otherwise enable framebuffer device. 9 * - use kernel option 'vga=xxx' or otherwise enable framebuffer device.
10 * - put somewhere fbsplash.cfg file and an image in .ppm format. 10 * - put somewhere fbsplash.cfg file and an image in .ppm format.
11 * - run applet: $ setsid fbsplash [params] & 11 * - run applet: $ setsid fbsplash [params] &
12 * -c: hide cursor 12 * -c: hide cursor
13 * -d /dev/fbN: framebuffer device (if not /dev/fb0) 13 * -d /dev/fbN: framebuffer device (if not /dev/fb0)
14 * -s path_to_image_file (can be "-" for stdin) 14 * -s path_to_image_file (can be "-" for stdin)
15 * -i path_to_cfg_file 15 * -i path_to_cfg_file
16 * -f path_to_fifo (can be "-" for stdin) 16 * -f path_to_fifo (can be "-" for stdin)
17 * - if you want to run it only in presence of a kernel parameter 17 * - if you want to run it only in presence of a kernel parameter
18 * (for example fbsplash=on), use: 18 * (for example fbsplash=on), use:
19 * grep -q "fbsplash=on" </proc/cmdline && setsid fbsplash [params] 19 * grep -q "fbsplash=on" </proc/cmdline && setsid fbsplash [params]
@@ -147,7 +147,7 @@ static void fb_drawfullrectangle(int nx1pos, int ny1pos, int nx2pos, int ny2pos,
147 ngreen >>= 2; // 6-bit green 147 ngreen >>= 2; // 6-bit green
148 nblue >>= 3; // 5-bit blue 148 nblue >>= 3; // 5-bit blue
149 thispix = nblue + (ngreen << 5) + (nred << (5+6)); 149 thispix = nblue + (ngreen << 5) + (nred << (5+6));
150 150
151 cnt1 = ny2pos - ny1pos; 151 cnt1 = ny2pos - ny1pos;
152 nypos = ny1pos; 152 nypos = ny1pos;
153 do { 153 do {
@@ -156,7 +156,7 @@ static void fb_drawfullrectangle(int nx1pos, int ny1pos, int nx2pos, int ny2pos,
156 do { 156 do {
157 *ptr++ = thispix; 157 *ptr++ = thispix;
158 } while (--cnt2 >= 0); 158 } while (--cnt2 >= 0);
159 159
160 nypos++; 160 nypos++;
161 } while (--cnt1 >= 0); 161 } while (--cnt1 >= 0);
162} 162}
@@ -342,7 +342,7 @@ static void init(const char *cfg_filename)
342 case 7: 342 case 7:
343 G.bdebug_messages = val; 343 G.bdebug_messages = val;
344 if (G.bdebug_messages) 344 if (G.bdebug_messages)
345 G.logfile_fd = xfopen("/tmp/fbsplash.log", "w"); 345 G.logfile_fd = xfopen("/tmp/fbsplash.log", "w");
346 break; 346 break;
347#endif 347#endif
348 err: 348 err: