Vincent Povirk : gdiplus: Correctly store the given stride in created bitmaps.
Module: wine Branch: master Commit: 32bbb0bbcfed7591fe2adcf39a2ccf905cbc7027 URL: http://source.winehq.org/git/wine.git/?a=commit;h=32bbb0bbcfed7591fe2adcf39a... Author: Vincent Povirk <vincent(a)codeweavers.com> Date: Fri Nov 12 10:17:32 2010 -0600 gdiplus: Correctly store the given stride in created bitmaps. --- dlls/gdiplus/image.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index e17edde..69f5865 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -1685,6 +1685,8 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromScan0(INT width, INT height, INT stride, GdipFree(pbmi); if (!hbitmap) return GenericError; + + stride = dib_stride; } else { @@ -1727,7 +1729,7 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromScan0(INT width, INT height, INT stride, (*bitmap)->hbitmap = hbitmap; (*bitmap)->hdc = NULL; (*bitmap)->bits = bits; - (*bitmap)->stride = dib_stride; + (*bitmap)->stride = stride; (*bitmap)->own_bits = own_bits; /* set format-related flags */
participants (1)
-
Alexandre Julliard