Ignore:
Timestamp:
Jul 26, 2009, 9:17:28 PM (11 years ago)
Author:
Sam Hocevar
Message:

Coding style: remove tabs and trailing spaces.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/aafire.c

    r2961 r3582  
    11/*
    22 *  cacafire      fire demo for libcaca
    3  *  Copyright (c) 2003 Sam Hocevar <sam@zoy.org>
     3 *  Copyright (c) 2003 Sam Hocevar <sam@hocevar.net>
    44 *                1998, 1999, 2001 Jan Hubicka <hubicka@freesoft.cz>
    55 *                All Rights Reserved
     
    137137#else
    138138    aa_setpalette (palette, i, pal[i * 3] * 4,
    139                    pal[i * 3 + 1] * 4, pal[i * 3 + 2] * 4);
     139                   pal[i * 3 + 1] * 4, pal[i * 3 + 2] * 4);
    140140#endif
    141141
     
    172172    {
    173173      if (i > minus)
    174         {
    175           p2 = (i - minus) / 5;
    176           table[i] = p2;
    177         }
     174        {
     175          p2 = (i - minus) / 5;
     176          table[i] = p2;
     177        }
    178178      else
    179         table[i] = 0;
     179        table[i] = 0;
    180180    }
    181181}
     
    192192  i = 0;
    193193#define END (bitmap + XSIZ * YSIZ)
    194   for (p = (unsigned char*)bitmap; 
    195        (char*)p <= (( char *) (END)); 
     194  for (p = (unsigned char*)bitmap;
     195       (char*)p <= (( char *) (END));
    196196       p += 1)
    197197    {
    198198      *p = table[(*(p + XSIZ - 1) + *(p + XSIZ + 1) + *(p + XSIZ)) +
    199                 (*(p + 2 * XSIZ - 1) + *(p + 2 * XSIZ + 1))];
     199                (*(p + 2 * XSIZ - 1) + *(p + 2 * XSIZ + 1))];
    200200    }
    201201}
     
    229229      i = rand () % 6;
    230230      for (; p < (unsigned char *) bitmap + XSIZ * (YSIZ + 1) && i != 0;
    231            p++, i--, i1 += 4, i2 -= 4)
    232         *p = last1, last1 += rand () % 6 - 2, *(p + XSIZ) = last1, last1 +=
    233           rand () % 6 - 2;
     231           p++, i--, i1 += 4, i2 -= 4)
     232        *p = last1, last1 += rand () % 6 - 2, *(p + XSIZ) = last1, last1 +=
     233          rand () % 6 - 2;
    234234      *(p + 2 * XSIZ) = last1, last1 += rand () % 6 - 2;
    235235    }
     
    245245                  caca_get_canvas_height(cv) - 2,
    246246                  " -=[ Powered by libcaca ]=- ");
    247  
     247
    248248  caca_refresh_display(dp);
    249249  /*XSIZ = caca_get_width() * 2;
     
    251251#else
    252252  aa_renderpalette (context, palette, params, 0, 0, aa_scrwidth (context),
    253                     aa_scrheight (context));
     253                    aa_scrheight (context));
    254254  aa_flush (context);
    255255#endif
Note: See TracChangeset for help on using the changeset viewer.