aboutsummaryrefslogtreecommitdiff
path: root/console-tools/loadfont.c
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2010-10-29 11:46:52 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2010-10-29 11:46:52 +0200
commitfb132e47370378474c68ad22c1c0cb2ccee178de (patch)
tree4f78d0fdd1c2fa2341c7d9bb17f9d98d099a238c /console-tools/loadfont.c
parent66cb7bed33da605674c3d24734466b8e8a60e337 (diff)
downloadbusybox-w32-fb132e47370378474c68ad22c1c0cb2ccee178de.tar.gz
busybox-w32-fb132e47370378474c68ad22c1c0cb2ccee178de.tar.bz2
busybox-w32-fb132e47370378474c68ad22c1c0cb2ccee178de.zip
whitespace cleanup
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'console-tools/loadfont.c')
-rw-r--r--console-tools/loadfont.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c
index 3c77813b5..079626c20 100644
--- a/console-tools/loadfont.c
+++ b/console-tools/loadfont.c
@@ -136,7 +136,7 @@ static void do_loadfont(int fd, unsigned char *inbuf, int height, int width, int
136 * Example: 136 * Example:
137 * At the font position for a capital A-ring glyph, we 137 * At the font position for a capital A-ring glyph, we
138 * may have: 138 * may have:
139 * 00C5,212B,FFFE,0041,030A,FFFF 139 * 00C5,212B,FFFE,0041,030A,FFFF
140 * Some font positions may be described by sequences only, 140 * Some font positions may be described by sequences only,
141 * namely when there is no precomposed Unicode value for the glyph. 141 * namely when there is no precomposed Unicode value for the glyph.
142 */ 142 */
@@ -159,7 +159,7 @@ static void do_loadtable(int fd, unsigned char *inbuf, int tailsz, int fontsize,
159 int glyph; 159 int glyph;
160 uint16_t unicode; 160 uint16_t unicode;
161 161
162 maxct = tailsz; /* more than enough */ 162 maxct = tailsz; /* more than enough */
163 up = xmalloc(maxct * sizeof(*up)); 163 up = xmalloc(maxct * sizeof(*up));
164 164
165 for (glyph = 0; glyph < fontsize; glyph++) { 165 for (glyph = 0; glyph < fontsize; glyph++) {
@@ -255,10 +255,10 @@ static void do_load(int fd, unsigned char *buffer, size_t len)
255 } else 255 } else
256#endif 256#endif
257#if ENABLE_FEATURE_LOADFONT_RAW 257#if ENABLE_FEATURE_LOADFONT_RAW
258 if (len == 9780) { /* file with three code pages? */ 258 if (len == 9780) { /* file with three code pages? */
259 charsize = height = 16; 259 charsize = height = 16;
260 font += 40; 260 font += 40;
261 } else if ((len & 0377) == 0) { /* bare font */ 261 } else if ((len & 0377) == 0) { /* bare font */
262 charsize = height = len / 256; 262 charsize = height = len / 256;
263 } else 263 } else
264#endif 264#endif