diff src/dmtext_bm.c @ 1102:e06abfde6c39

Cosmetics pass: Remove excess whitespace.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 03 Mar 2015 23:22:36 +0200
parents 21aeff49d974
children 5e5f75b45f8d
line wrap: on
line diff
--- a/src/dmtext_bm.c	Tue Mar 03 22:32:34 2015 +0200
+++ b/src/dmtext_bm.c	Tue Mar 03 23:22:36 2015 +0200
@@ -46,7 +46,7 @@
 void dmDrawBMText(SDL_Surface *screen, DMBitmapFont *font, BOOL condensed, int mode, int xc, int yc, const char *fmt, ...)
 {
     va_list ap;
-    
+
     va_start(ap, fmt);
     dmDrawBMTextVA(screen, font, condensed, mode, xc, yc, fmt, ap);
     va_end(ap);
@@ -58,7 +58,7 @@
     DMBitmapFont *font = dmMalloc0(sizeof(DMBitmapFont));
     if (font == NULL)
         return NULL;
-    
+
     font->width = width;
     font->height = height;
     font->nglyphs = nglyphs;
@@ -79,7 +79,7 @@
 
     if (font == NULL)
         return DMERR_NULLPTR;
-    
+
     for (i = 0; i < font->nglyphs; i++)
     {
         if (font->glyphs[i] != NULL)
@@ -104,10 +104,10 @@
 
     if (font == NULL)
         return DMERR_NULLPTR;
-    
+
     if (start < 0 || size < 1)
         return DMERR_INVALID_ARGS;
-    
+
     for (i = 0; i < font->nglyphs; i++)
     {
         SDL_Surface *glyph = font->glyphs[i];
@@ -129,11 +129,11 @@
     Uint16 version, nglyphs, maxglyph;
     int width, height;
     BOOL tsfont = FALSE;
-    
+
     // Check magic and version
     dmf_read_str(res, (Uint8 *) &magic, 6);
     dmf_read_le16(res, &version);
-    
+
     // Check if it is a legacy TSFONT file
     if (memcmp(magic, TSFONT_MAGIC, 6) == 0)
     {
@@ -147,7 +147,7 @@
 #ifdef FN_DEBUG
         fprintf(stderr, "TSFONT v%d.%d (0x%04x), encoding=%d\n", version >> 8, version & 0xff, version, encoding);
 #endif
-        
+
         // There were only two encodings, 0 = none and 1 = RLE
         // of which RLE was never actually used ... derp.
         if (encoding != 0)
@@ -161,13 +161,13 @@
         if (version > DMFONT_VERSION)
             return DMERR_VERSION;
     }
-    
+
     // Read other header data
     if (tsfont)
     {
         // TSFONT only has number of glyphs stored in the file
         nglyphs = dmfgetc(res);
-        
+
         // Maximum glyph number
         maxglyph = 256;
     }
@@ -176,7 +176,7 @@
         dmf_read_le16(res, &nglyphs);
         dmf_read_le16(res, &maxglyph);
     }
-    
+
     width = dmfgetc(res);
     height = dmfgetc(res);
 
@@ -189,7 +189,7 @@
     {
         // TSFONT color assignments (boolean) .. we discard this.
         dmfgetc(res);
-        
+
         // Very old TSFONTs have some extra data that is not used
         // .. can't actually even remember what it was for.
         if (version == 0x0200)