mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 02:06:39 +00:00
gdiplus: Correctly store the given stride in created bitmaps.
This commit is contained in:
parent
9c238d181d
commit
32bbb0bbcf
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue