gdiplus: Use outside color from image attributes for an out of bounds pixel.

Dmitry Timoshkov dmitry at baikal.ru
Mon Aug 27 19:36:34 CDT 2012


---
 dlls/gdiplus/graphics.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 9415f36..8cdb3ee 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -3218,7 +3218,7 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics *graphics, GpImage *image
                     if (src_pointf.X >= srcx && src_pointf.X < srcx + srcwidth && src_pointf.Y >= srcy && src_pointf.Y < srcy+srcheight)
                         *dst_color = resample_bitmap_pixel(&src_area, src_data, bitmap->width, bitmap->height, &src_pointf, imageAttributes, interpolation);
                     else
-                        *dst_color = 0;
+                        *dst_color = imageAttributes->outside_color;
                 }
             }
 
-- 
1.7.11.5




More information about the wine-patches mailing list