Fix oleaut32/olepicture

Maxime Bellengé maxime.bellenge at laposte.net
Tue Apr 29 07:46:07 CDT 2003


I resnd it because it does not appears on the wine patches page (noticed
by stéphan beuze). It is maybe a consequence of the recent server
problems.

-

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.

a+ 

Max

ChangeLog:
  * Fixes scanline size in OLEPictureImpl_Load for jpeg
  * Convert from RGB to BGR according to BITMAPINFOHEADER MSDN
documentation.
-- 
Maxime Bellengé <maxime.bellenge at laposte.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: olepicture.patch
Type: text/x-patch
Size: 2729 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20030429/5cbd4afd/olepicture.bin


More information about the wine-patches mailing list