[Bug 1973] Bug in StretchDIBits with biBitCount=32
Wine Bugs
wine-bugs at winehq.org
Tue Aug 1 15:37:55 CDT 2006
http://bugs.winehq.org/show_bug.cgi?id=1973
------- Additional Comments From willie at froq.net 2006-01-08 15:37 -------
Hervé Adam of TVPaint sent me this comment on the bug a while ago:
--- 8< ---
I think, it's a bug in Wine DIB engine.
BITMAPINFOHEADER bmiHeader;
memset(&bmiHeader, 0, sizeof(BITMAPINFOHEADER));
bmiHeader.biSize = 40;
bmiHeader.biClrUsed = 0;
bmiHeader.biBitCount = 32;
bmiHeader.biPlanes = 1;
bmiHeader.biCompression = BI_RGB;
bmiHeader.biXPelsPerMeter = 0;
bmiHeader.biYPelsPerMeter = 0;
bmiHeader.biClrImportant = 0;
bmiHeader.biWidth = Width();
bmiHeader.biHeight = -Height();
bmiHeader.biSizeImage = Width()*(Height()*4);
StretchDIBits( dc, iDstX, iDstY, iDstW, iDstH, 0, 0, sw, sh, (CONST
VOID *)Block()->Pixels(sx, sy), (CONST BITMAPINFO *)&bmiHeader,
(UINT)DIB_RGB_COLORS, (DWORD)SRCCOPY);
--- >8 ---
That's all he wrote. I don't really understand it, but maybe someone else
does.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the wine-bugs
mailing list