[Libdlo] correct bpp value
Tim Green
timothy.j.green at gmail.com
Sat Jun 6 01:02:37 PDT 2009
2009/6/5 Yi Sun <beyounn at gmail.com>:
> Hmm.. when looking at the code, it seems that only 24bpp is allowed. I'm
> new here, could someone tell give some info on this?
> Thanks
> Yi
> On Fri, 2009-06-05 at 14:15 -0700, Yi Sun wrote:
>> All,
>> in the test1 of libdlo, it configs the bpp to 24 when it sets the mode.
>> With my monitor (It is not in front of me now, i will get the model
>> number later if need), if I try to set it to 32bpp, the get_mode
>> function will always return 0 bpp and the test will fail. I'm wandering
>> if anyone has been able to use 32bpp on a monitor?
>> Thanks
>> Yi
8 bits for red + 8 bits for green + 8 bits for blue = 24 bits.
Other "32 bit" colour systems use the extra 8 bits for either padding
(32 bit processors are more efficient at moving 32 bit word-aligned
data than byte-aligned 24 bit data) or alpha blending surfaces.
Hope that helps,
Tim.
More information about the Libdlo
mailing list