Ignore:
Timestamp:
Apr 17, 2011, 11:56:44 PM (11 years ago)
Author:
Sam Hocevar
Message:

style: remove trailing spaces, fix copyright statements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/include.cpp

    r481 r494  
    22 *  Abuse - dark 2D side-scrolling platform game
    33 *  Copyright (c) 1995 Crack dot Com
     4 *  Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
    45 *
    56 *  This software was released into the Public Domain. As with most public
     
    1920  unsigned int j;
    2021  int append=0,i;
    21   for (j=0;j<strlen(name);j++)
     22  for (j=0; j<strlen(name); j++)
    2223    if (toupper(tmp_name[j])<'A' || toupper(tmp_name[j])>'Z')
    2324      tmp_name[j]='_';
     
    4142      fprintf(fp,"unsigned char %s_palette[256*3] = {\n    ",tmp_name);
    4243      unsigned char *p=(unsigned char *)pal->addr();
    43       for (i=0;i<768;i++,p++)
     44      for (i=0; i<768; i++,p++)
    4445      {
    4546    fprintf(fp,"%d",(int)*p);
     
    5556            im->width(),im->height());
    5657    int x,y,max=im->width()*im->height()-1;
    57     for (y=0,i=0;y<im->height();y++)
    58       for (x=0;x<im->width();x++,i++)
     58    for (y=0,i=0; y<im->height(); y++)
     59      for (x=0; x<im->width(); x++,i++)
    5960      {
    6061        fprintf(fp,"%d",(int)im->pixel(x,y));
Note: See TracChangeset for help on using the changeset viewer.