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

style: remove trailing spaces, fix copyright statements.

File:
1 edited

Legend:

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

    r490 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
     
    1617  uint8_t *dp=data;
    1718  int y,x;
    18   for (y=0;y<h;y++)
     19  for (y=0; y<h; y++)
    1920  {
    2021    x=0;
     
    4041  uint8_t *d=im->scan_line(0),*dp=data,*dline;
    4142  int y,x;
    42   for (y=0;y<h;y++)
     43  for (y=0; y<h; y++)
    4344  {
    4445    x=0;
     
    7576
    7677  // first we must find out how much data to allocate
    77   for (y=0;y<im->height();y++)
     78  for (y=0; y<im->height(); y++)
    7879  {
    7980    sl=im->scan_line(y);
     
    104105  CONDITION(datap,"malloc error for trans_image::data");
    105106
    106   for (y=0;y<hh;y++)  // now actually make the runs
     107  for (y=0; y<hh; y++)  // now actually make the runs
    107108  {
    108109    sl=im->scan_line(y);
     
    145146  while (line)            // skip scan line data until we get to the line of interest
    146147  {
    147     for (ix=0;ix<w;)
     148    for (ix=0; ix<w; )
    148149    {
    149150      ix+=*datap;        // skip blank space
     
    165166  uint8_t *screen_line=screen->scan_line(y)+x;
    166167
    167   for (ix=0;ix<w;)
     168  for (ix=0; ix<w; )
    168169  {
    169170    int skip=*datap;              // how much space to skip?
     
    275276  int sw=screen->width()-w;
    276277  x1-=x; x2-=x;
    277   for (;ysteps>0;ysteps--)
     278  for (; ysteps>0; ysteps--)
    278279  {
    279280    int ix,slam_length;
    280     for (ix=0;ix<w;)
     281    for (ix=0; ix<w; )
    281282    {
    282283      int blank=(*datap);
     
    343344  screen->lock();
    344345  screen_skip = screen->width() - w;
    345   for (;ysteps;ysteps--)
    346   {
    347     for (ix=0;ix<w;)
     346  for (; ysteps; ysteps--)
     347  {
     348    for (ix=0; ix<w; )
    348349    {
    349350      skip=*datap;       // skip leading blank space
     
    387388  int sw=screen->width();
    388389  x1-=x; x2-=x;
    389   for (;ysteps>0;ysteps--)
     390  for (; ysteps>0; ysteps--)
    390391  {
    391392    int ix,slam_length;
    392     for (ix=0;ix<w;)
     393    for (ix=0; ix<w; )
    393394    {
    394395      ix+=(*datap);       // skip over empty space
     
    452453  int sw=screen->width();
    453454  x1-=x; x2-=x;
    454   for (;ysteps>0;ysteps--)
     455  for (; ysteps>0; ysteps--)
    455456  {
    456457    int ix,slam_length;
    457     for (ix=0;ix<w;)
     458    for (ix=0; ix<w; )
    458459    {
    459460      ix+=(*datap);       // skip over empty space
     
    530531  int sw=screen->width();
    531532  x1-=x; x2-=x;
    532   for (;ysteps>0;ysteps--)
     533  for (; ysteps>0; ysteps--)
    533534  {
    534535    int ix,slam_length;
    535     for (ix=0;ix<w;)
     536    for (ix=0; ix<w; )
    536537    {
    537538      ix+=(*datap);       // skip over empty space
     
    612613  long fixmul=(frame_on<<16)/total_frames;
    613614  screen->lock();
    614   for (;ysteps>0;ysteps--,y++)
     615  for (; ysteps>0; ysteps--,y++)
    615616  {
    616617    screen_line=screen->scan_line(y);
    617618
    618     for (ix=0;ix<w;)
     619    for (ix=0; ix<w; )
    619620    {
    620621      ix+=(*datap);       // skip over empty space
     
    706707
    707708  long fixmul=(frame_on<<16)/total_frames;
    708   for (;ysteps>0;ysteps--,y++)
     709  for (; ysteps>0; ysteps--,y++)
    709710  {
    710711    screen_line=screen->scan_line(y);
    711712
    712     for (ix=0;ix<w;)
     713    for (ix=0; ix<w; )
    713714    {
    714715      ix+=(*datap);       // skip over empty space
     
    790791
    791792  screen->lock();
    792   for (;ysteps>0;ysteps--,y++)
     793  for (; ysteps>0; ysteps--,y++)
    793794  {
    794795    screen_line=screen->scan_line(y);
    795796
    796     for (ix=0;ix<w;)
     797    for (ix=0; ix<w; )
    797798    {
    798799      ix+=(*datap);       // skip over empty space
     
    861862
    862863  screen->lock();
    863   for (;ysteps>0;ysteps--,y++)
     864  for (; ysteps>0; ysteps--,y++)
    864865  {
    865866    screen_line=screen->scan_line(y);
     
    867868
    868869
    869     for (ix=0;ix<w;)
     870    for (ix=0; ix<w; )
    870871    {
    871872      ix+=(*datap);       // skip over empty space
     
    959960  else if (y+ysteps==y2-1) ysteps--;
    960961/*  {
    961     for (int x=0;x<w;)
     962    for (int x=0; x<w; )
    962963    {
    963964      int skip=*datap; datap++;
     
    980981  int sw=screen->width();
    981982  x1-=x; x2-=x;
    982   for (;ysteps>0;ysteps--)
     983  for (; ysteps>0; ysteps--)
    983984  {
    984985    int ix,slam_length;
    985     for (ix=0;ix<w;)
     986    for (ix=0; ix<w; )
    986987    {
    987988      ix+=(*datap);       // skip over empty space
     
    10361037  uint8_t *d=data;
    10371038  int t=0;
    1038   for (int y=0;y<h;y++)
     1039  for (int y=0; y<h; y++)
    10391040  {
    10401041    int x=0;
Note: See TracChangeset for help on using the changeset viewer.