Fix olepicture 3

Maxime Bellengé maxime.bellenge at laposte.net
Wed May 7 14:59:29 CDT 2003


This is the third round :)
Alexandre I think this time this is the good one. 

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.

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: olepicture3.patch
Type: text/x-patch
Size: 2842 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20030507/e60741d4/olepicture3.bin


More information about the wine-patches mailing list