Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed macro line endings after whitespace was fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 22, 2013
1 parent 786e80a commit 8ac1608
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/video/SDL_stretch.c
Expand Up @@ -150,21 +150,21 @@ generate_rowbytes(int src_w, int dst_w, int bpp)

#define DEFINE_COPY_ROW(name, type) \
static void name(type *src, int src_w, type *dst, int dst_w) \
{ \
int i; \
int pos, inc; \
type pixel = 0; \
\
pos = 0x10000; \
{ \
int i; \
int pos, inc; \
type pixel = 0; \
\
pos = 0x10000; \
inc = (src_w << 16) / dst_w; \
for ( i=dst_w; i>0; --i ) { \
while ( pos >= 0x10000L ) { \
pixel = *src++; \
pos -= 0x10000L; \
} \
*dst++ = pixel; \
pos += inc; \
} \
for ( i=dst_w; i>0; --i ) { \
while ( pos >= 0x10000L ) { \
pixel = *src++; \
pos -= 0x10000L; \
} \
*dst++ = pixel; \
pos += inc; \
} \
}
/* *INDENT-OFF* */
DEFINE_COPY_ROW(copy_row1, Uint8)
Expand Down

0 comments on commit 8ac1608

Please sign in to comment.