http://bugs.winehq.org/show_bug.cgi?id=1973
------- Additional Comments From willie@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.