[2/2] gdiplus: Access bitmaps by row in alpha_blend_bmp_pixels.
Vincent Povirk
madewokherd at gmail.com
Tue Mar 17 16:19:31 CDT 2015
Pointed out on bug 37689.
-------------- next part --------------
From 4b82bf88f5cf73e5a7538fa67e6cb9559d5537d6 Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Tue, 17 Mar 2015 16:11:14 -0500
Subject: [PATCH 2/2] gdiplus: Access bitmaps by row in alpha_blend_bmp_pixels.
---
dlls/gdiplus/graphics.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 01f5fa3..499767e 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -360,9 +360,9 @@ static GpStatus alpha_blend_bmp_pixels(GpGraphics *graphics, INT dst_x, INT dst_
GpBitmap *dst_bitmap = (GpBitmap*)graphics->image;
INT x, y;
- for (x=0; x<src_width; x++)
+ for (y=0; y<src_height; y++)
{
- for (y=0; y<src_height; y++)
+ for (x=0; x<src_width; x++)
{
ARGB dst_color, src_color;
src_color = ((ARGB*)(src + src_stride * y))[x];
--
2.1.0
More information about the wine-patches
mailing list