gdiplus: Process a row instead of a column in inner conversion loop.

This commit is contained in:
Vincent Povirk 2014-09-18 13:22:14 -05:00 committed by Alexandre Julliard
parent 2eeffe8acd
commit 3fc386fc86

View file

@ -582,8 +582,8 @@ GpStatus convert_pixels(INT width, INT height,
}
#define convert_indexed_to_rgb(getpixel_function, setpixel_function) do { \
for (x=0; x<width; x++) \
for (y=0; y<height; y++) { \
for (y=0; y<height; y++) \
for (x=0; x<width; x++) { \
BYTE index; \
ARGB argb; \
BYTE *color = (BYTE *)&argb; \
@ -595,8 +595,8 @@ GpStatus convert_pixels(INT width, INT height,
} while (0);
#define convert_rgb_to_rgb(getpixel_function, setpixel_function) do { \
for (x=0; x<width; x++) \
for (y=0; y<height; y++) { \
for (y=0; y<height; y++) \
for (x=0; x<width; x++) { \
BYTE r, g, b, a; \
getpixel_function(&r, &g, &b, &a, src_bits+src_stride*y, x); \
setpixel_function(r, g, b, a, dst_bits+dst_stride*y, x); \
@ -605,8 +605,8 @@ GpStatus convert_pixels(INT width, INT height,
} while (0);
#define convert_rgb_to_indexed(getpixel_function, setpixel_function) do { \
for (x=0; x<width; x++) \
for (y=0; y<height; y++) { \
for (y=0; y<height; y++) \
for (x=0; x<width; x++) { \
BYTE r, g, b, a; \
getpixel_function(&r, &g, &b, &a, src_bits+src_stride*y, x); \
setpixel_function(r, g, b, a, dst_bits+dst_stride*y, x, palette); \