[2/3] gdiplus: If a 32-bit dib is selected in an hdc, use the dib directly.
Alexandre Julliard
julliard at winehq.org
Tue Dec 4 10:06:47 CST 2012
Vincent Povirk <madewokherd at gmail.com> writes:
> Does that mean there's no way to access the bits directly given a DIB object?
If you don't know how it was created, then no.
> I think we do it line by line so that we don't rely on
> GdipCreateBitmapFromScan0 to create the bitmap with a particular
> stride. I guess we could specify a stride when calling that.
It seems to me the default is already a DIB stride.
>> Sure, but it shouldn't crash and burn.
>
> I don't understand why it would. I'd expect the GetObject to fail
> given sizeof(DIBSECTION) if the object is a DDB.
No, that's not how it works, size is an upper bound.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list