Re: GetDIBits(): Handle Bitfields properly

2007-04-15 Thread Dmitry Timoshkov
"Michael Kaufmann" <[EMAIL PROTECTED]> wrote: Do you have any information about the 15 bpp case? Are some applications using this value? According to MSDN, it is not allowed. 15 bpp case should be similar to a 16-bit one but with different masks. -- Dmitry.

Re: GetDIBits(): Handle Bitfields properly

2007-04-15 Thread Michael Kaufmann
+if (bpp > 0 && compr == BI_BITFIELDS) +{ +/* Windows ignores the input bitfields and overwrites them */ + +if (bpp == 16) +{ +/* With these bitfields, the color data is the same as for BI_RGB */ +((PDWORD)info->bmiColors)[0] = 0x7c00; +

Re: GetDIBits(): Handle Bitfields properly

2007-04-14 Thread Dmitry Timoshkov
"Michael Kaufmann" <[EMAIL PROTECTED]> wrote: +if (bpp > 0 && compr == BI_BITFIELDS) +{ +/* Windows ignores the input bitfields and overwrites them */ + +if (bpp == 16) +{ +/* With these bitfields, the color data is the same as for BI_RGB */ +