Fix oleaut32/olepicture (2)

Maxime Bellengé maxime.bellenge at
Wed Apr 30 05:50:21 CDT 2003

This one fixes the formulas for the scanlines.

This patch fixes the loading of jpeg images through OleLoadPicture

According to MSDN, each scanline of a DIB has to be aligned on DWORD.
Moreover BITMAPINFOHEADER says that colors should be BGR.

These changes fix the SplashScreen of emule. Now it looks as it should.



  * Fixes scanline size in OLEPictureImpl_Load for jpeg
  * Convert from RGB to BGR according to BITMAPINFOHEADER MSDN

Maxime Bellengé <maxime.bellenge at>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: olepicture2.patch
Type: text/x-patch
Size: 2811 bytes
Desc: not available
Url :

More information about the wine-patches mailing list