On Wednesday 06 July 2005 11:20 am, Frank Richter wrote:
Hi,
I have a bit of trouble with loading a 32bpp RGBA bitmap from a
resource. On Windows, using LoadImage() and LR_CREATEDIBSECTION the
alpha values stays the same; however, doing the same on Wine, the alpha
channel gets clobbered. I suspect it's the StretchDIBits() call, as
hacking around that by memcpy()ing the bitmap bits into the returned DIB
section makes it work... is memcpy()ing feasible?
StrechDIBits is at fault, you´ll notice if you call that with the original
size of the bitmap (hence not stretching) it works as expected
If I remember correctly, its actually the XGetImage in
BITBLT_GetSrcAreaStretch that is causing this..but it´s been a while since I
looked into this issue