CreateBitmapIndirect

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


Hi,

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.

Cheers,
Jon


   +dlls/gdi/bitmap.c
    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 yahoo.com


		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bitmap.diff
Type: application/octet-stream
Size: 5186 bytes
Desc: bitmap.diff
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20041115/b0144733/bitmap.obj


More information about the wine-patches mailing list