Patch for CreateDIBitmap: Don't create monochrome bitmaps (help wanted)

Francois Gouget fgouget at
Thu Aug 26 06:19:02 CDT 2004

On Thu, 26 Aug 2004, Michael Kaufmann wrote:
> > Test Program (
> > ---------------------------------
> >
> > I've created a test program that shows the problem. It also shows a
> > bug in Windows! It displays two bitmaps, both should be black and
> > white. WINE displays them red on green (I've set these colors with
> > SetTextColor/SetBkColor).
> Now I do. CreateDIBitmap() doesn't provoke this, it's LoadImage(). This
> function creates a device-dependent bitmap. If it's possible, it creates
> a monochrome bitmap. Windows looks at the color tables to check if the
> two colors are really black and white. For the right bitmap, this is not
> the case, and so Windows creates a color bitmap.
> WINE will do the same with my patch applied.

Could you integrate the DIB-Testcase program with the conformance
framework? It seems like it would be a valuable addition and a good
complement to your patch.

Francois Gouget         fgouget at
     The software said it requires Win95 or better, so I installed Linux.

More information about the wine-devel mailing list