I am loading a 32bpp bitmap from resources of a dll, but under wine its being reported 
as 24 bit..for example

void main() {
    HMODULE hTheme = 
LoadLibrary("C:\\Windows\\Resources\\Themes\\Luna\\Luna.msstyles");
    HBITMAP hBmp = LoadBitmap(hTheme, "BLUE_BUTTON_BMP");
    BITMAP bmp;
    GetObject(hBmp, sizeof(bmp), &bmp);
    printf("bpp=%d\n", bmp.bmBitsPizel);
}

under Windows prints 32, under Wine prints 24
I've tried to find the cause of this, but much of this is deep in x11drv which I am 
not familliar with at all..
Is wine stripping the alpha channel for some reason? or is this a bug?
(I've only run this example on that one file, its the native Luna.msstyles theme from 
an XP system)


Reply via email to