Re: [PATCH] Fix for monochrome device independent bitmaps with inverted colors
Gavriel State <[email protected]> Mon, 15 Aug 2005 09:41:26 -0400
| Newsgroups | gmane.comp.emulators.winex.devel |
|---|---|
| Message-ID | <[email protected]> |
Oldřich Jedlička wrote: >Hi, > >I found a problem in translating XImage into DIB created by CreateDIBSection. >All problems are in graphics/x11drv/dib.c only. > > >This was found out in game Neighbours from Hell which uses inverted palette >monochrome bitmaps for outputting the text. The testcase for exactly this >problem is very simple: create bitmap with CreateDIBSection with inverted RGB >colors (color[0]=0xFFFFFF, color[1]=0x000000), create some font, select >bitmap and font into device context and call TextOut. You can see then the >result in bits of DIB (correct with the patch, inverted without patch). > >Please find the attached patch. > > Wow - I don't think that I can remember the last time that we've seen a game that's actually tried to use even basic monochrome DIBs. Good stuff, regardless. Can you explicitly confirm that you're willing to license your patch to us under the terms of the ReWind X11-style license? Take care, -Gav -- Gavriel State Founder & CTO TransGaming Technologies Inc. [email protected] http://www.transgaming.com Let the games begin!