[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 09:23:30 CST 2012


Vincent Povirk <madewokherd at gmail.com> writes:

>> you won't get a negative height with GetObject,
>
> Hmm, is GdipCreateBitmapFromHBITMAP doing it right, then? It assumes
> all DIB objects have positive stride.

No, that's wrong. It should most likely just do a GetDIBits (in one go,
not line by line like it currently does).

>> you won't get DIB info at all for DDBs.
>
> I don't think it makes sense to do this for DDBs, as I can't draw them
> directly and don't expect them to have alpha information.

Sure, but it shouldn't crash and burn.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list