Jon Griffiths jon_p_griffiths at
Mon Nov 15 07:50:02 CST 2004


Our current CreateBitmapIndirect implementation correctly assumes
that all bitmaps must be 16-bit aligned, but it doesn't allow for
greater alignment than that (e.q. 8 bit width, 32 bit alignment)
because it ignores the bmWidthBytes value passed in.

This patch fixes this by implementing CreateBitmap using
CreateBitmapIndirect, and is needed for an upcoming EMF patch. It
also changes BITMAP_GetWidthBytes() to non-static: that will be used
in the next patch.


    Implement CreateBitmap using CreateBitmapIndirect so we can
    handle funky alignment paddings.
    SetLastError() on failure, documentation cleanup.

"Don't wait for the seas to part, or messiahs to come;
 Don't you sit around and waste this chance..." - Live

jon_p_griffiths at

Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bitmap.diff
Type: application/octet-stream
Size: 5186 bytes
Desc: bitmap.diff
Url :

More information about the wine-patches mailing list