Commit 3fc386fc authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

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

parent 2eeffe8a
...@@ -582,8 +582,8 @@ GpStatus convert_pixels(INT width, INT height, ...@@ -582,8 +582,8 @@ GpStatus convert_pixels(INT width, INT height,
} }
#define convert_indexed_to_rgb(getpixel_function, setpixel_function) do { \ #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; \ BYTE index; \
ARGB argb; \ ARGB argb; \
BYTE *color = (BYTE *)&argb; \ BYTE *color = (BYTE *)&argb; \
...@@ -595,8 +595,8 @@ GpStatus convert_pixels(INT width, INT height, ...@@ -595,8 +595,8 @@ GpStatus convert_pixels(INT width, INT height,
} while (0); } while (0);
#define convert_rgb_to_rgb(getpixel_function, setpixel_function) do { \ #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; \ BYTE r, g, b, a; \
getpixel_function(&r, &g, &b, &a, src_bits+src_stride*y, x); \ getpixel_function(&r, &g, &b, &a, src_bits+src_stride*y, x); \
setpixel_function(r, g, b, a, dst_bits+dst_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, ...@@ -605,8 +605,8 @@ GpStatus convert_pixels(INT width, INT height,
} while (0); } while (0);
#define convert_rgb_to_indexed(getpixel_function, setpixel_function) do { \ #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; \ BYTE r, g, b, a; \
getpixel_function(&r, &g, &b, &a, src_bits+src_stride*y, x); \ 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); \ setpixel_function(r, g, b, a, dst_bits+dst_stride*y, x, palette); \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment