This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: GDI DIB Engine Failing in 24 Bits Per Pixel Color
- From: Benjamin Riefenstahl <Benjamin dot Riefenstahl at epost dot de>
- To: cygwin-xfree at cygwin dot com
- Date: 22 Jan 2003 20:00:38 +0100
- Subject: Re: GDI DIB Engine Failing in 24 Bits Per Pixel Color
- References: <NHEELHJHHFKPMAEAFMFCEELCDFAA.huntharo@msu.edu>
- Reply-to: cygwin-xfree at cygwin dot com
Hi Harold,
"Harold L Hunt II" <huntharo@msu.edu> writes:
> I recall seeing somewhere that the GDI DIB documentation is wrong
> when it comes to 24 bit DIBs and that instead of the pixels being
> packed, they are actually aligned on 32 bit word boundaries, just
> like a 32 bit DIB. Am I crazy? Did I just dream seeing this?
A short look into the docs, without actually trying anything out, says
that scanlines must be padded to a 32-bit boundary (for all data types
actually, not just 24 bits). Does the code do that? The docs also
say, that the colormap can be used for optimization, so it must be
initialized, even if empty.
Just some thoughts, benny