src/video/SDL_stretch.c
changeset 7209 805754c011a1
parent 7208 414ad123be9b
child 7677 871d43c6968a
     1.1 --- a/src/video/SDL_stretch.c	Tue May 21 22:01:18 2013 -0700
     1.2 +++ b/src/video/SDL_stretch.c	Tue May 21 22:04:14 2013 -0700
     1.3 @@ -150,21 +150,21 @@
     1.4  
     1.5  #define DEFINE_COPY_ROW(name, type)         \
     1.6  static void name(type *src, int src_w, type *dst, int dst_w)    \
     1.7 -{                           \
     1.8 -    int i;                      \
     1.9 -    int pos, inc;                   \
    1.10 -    type pixel = 0;                 \
    1.11 -                            \
    1.12 -    pos = 0x10000;                  \
    1.13 +{                                           \
    1.14 +    int i;                                  \
    1.15 +    int pos, inc;                           \
    1.16 +    type pixel = 0;                         \
    1.17 +                                            \
    1.18 +    pos = 0x10000;                          \
    1.19      inc = (src_w << 16) / dst_w;            \
    1.20 -    for ( i=dst_w; i>0; --i ) {         \
    1.21 -        while ( pos >= 0x10000L ) {     \
    1.22 -            pixel = *src++;         \
    1.23 -            pos -= 0x10000L;        \
    1.24 -        }                   \
    1.25 -        *dst++ = pixel;             \
    1.26 -        pos += inc;             \
    1.27 -    }                       \
    1.28 +    for ( i=dst_w; i>0; --i ) {             \
    1.29 +        while ( pos >= 0x10000L ) {         \
    1.30 +            pixel = *src++;                 \
    1.31 +            pos -= 0x10000L;                \
    1.32 +        }                                   \
    1.33 +        *dst++ = pixel;                     \
    1.34 +        pos += inc;                         \
    1.35 +    }                                       \
    1.36  }
    1.37  /* *INDENT-OFF* */
    1.38  DEFINE_COPY_ROW(copy_row1, Uint8)