Vincent Povirk : gdiplus: Properly set the gdi+ format to match the wic encoder's format.

Alexandre Julliard julliard at winehq.org
Mon Oct 7 14:17:11 CDT 2013


Module: wine
Branch: master
Commit: b14a4ca0064a675b7f0c86a22e7fc39238080fc8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b14a4ca0064a675b7f0c86a22e7fc39238080fc8

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Fri Oct  4 14:30:48 2013 -0500

gdiplus: Properly set the gdi+ format to match the wic encoder's format.

---

 dlls/gdiplus/image.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c
index 0f97fd7..2e9191e 100644
--- a/dlls/gdiplus/image.c
+++ b/dlls/gdiplus/image.c
@@ -4078,7 +4078,7 @@ static GpStatus encode_image_WIC(GpImage *image, IStream* stream,
             {
                 if (IsEqualGUID(&wicformat, pixel_formats[i].wic_format))
                 {
-                    gdipformat = bitmap->format;
+                    gdipformat = pixel_formats[i].gdip_format;
                     break;
                 }
             }




More information about the wine-cvs mailing list