Vincent Povirk : gdiplus: Process a row instead of a column in inner conversion loop.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Sep 22 15:01:13 CDT 2014
Module: wine
Branch: master
Commit: 3fc386fc865c20d14798786943c8de0d9921d55f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3fc386fc865c20d14798786943c8de0d9921d55f
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Thu Sep 18 13:22:14 2014 -0500
gdiplus: Process a row instead of a column in inner conversion loop.
---
dlls/gdiplus/image.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c
index 7964cd8..0564f33 100644
--- a/dlls/gdiplus/image.c
+++ b/dlls/gdiplus/image.c
@@ -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); \
More information about the wine-cvs
mailing list