mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 17:14:10 +00:00
gdiplus: Process a row instead of a column in inner conversion loop.
This commit is contained in:
parent
2eeffe8acd
commit
3fc386fc86
|
@ -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); \
|
||||
|
|
Loading…
Reference in a new issue