gdiplus: Properly set the gdi+ format to match the wic encoder's format.
Vincent Povirk
madewokherd at gmail.com
Fri Oct 4 14:36:18 CDT 2013
This sort of mistake is what happens when, instead of writing a test
for my patch, I ask for someone on the bug to test it, wait a while,
get impatient, and send it with no testing.
So I decided to skip the first three steps this time.
-------------- next part --------------
From aae7325da16a434103cf41d7fa63af66bebda619 Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Fri, 4 Oct 2013 14:30:48 -0500
Subject: [PATCH] gdiplus: Properly set the gdi+ format to match the wic
encoder's format.
---
dlls/gdiplus/image.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
}
--
1.8.1.2
More information about the wine-patches
mailing list