Fixed macro line endings after whitespace was fixed
This commit is contained in:
parent
e2929bcb73
commit
a1b0f0566b
1 changed files with 14 additions and 14 deletions
|
@ -150,21 +150,21 @@ generate_rowbytes(int src_w, int dst_w, int bpp)
|
||||||
|
|
||||||
#define DEFINE_COPY_ROW(name, type) \
|
#define DEFINE_COPY_ROW(name, type) \
|
||||||
static void name(type *src, int src_w, type *dst, int dst_w) \
|
static void name(type *src, int src_w, type *dst, int dst_w) \
|
||||||
{ \
|
{ \
|
||||||
int i; \
|
int i; \
|
||||||
int pos, inc; \
|
int pos, inc; \
|
||||||
type pixel = 0; \
|
type pixel = 0; \
|
||||||
\
|
\
|
||||||
pos = 0x10000; \
|
pos = 0x10000; \
|
||||||
inc = (src_w << 16) / dst_w; \
|
inc = (src_w << 16) / dst_w; \
|
||||||
for ( i=dst_w; i>0; --i ) { \
|
for ( i=dst_w; i>0; --i ) { \
|
||||||
while ( pos >= 0x10000L ) { \
|
while ( pos >= 0x10000L ) { \
|
||||||
pixel = *src++; \
|
pixel = *src++; \
|
||||||
pos -= 0x10000L; \
|
pos -= 0x10000L; \
|
||||||
} \
|
} \
|
||||||
*dst++ = pixel; \
|
*dst++ = pixel; \
|
||||||
pos += inc; \
|
pos += inc; \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
DEFINE_COPY_ROW(copy_row1, Uint8)
|
DEFINE_COPY_ROW(copy_row1, Uint8)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue